@charset "utf-8";

/* ===================================
   Cocoon（ウラオモテ）余白・幅制限の上書き
   WordPress環境での表示崩れ対策
   =================================== */
.entry-content {
  max-width: 100% !important;
  padding: 0 !important;
}
.content {
  margin: 0 !important;
  padding: 0 !important;
}
.main {
  padding: 0 !important;
}
.wrap {
  max-width: 100% !important;
  padding: 0 !important;
}
#content {
  padding: 0 !important;
  margin: 0 !important;
}
.article {
  padding: 0 !important;
}

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

html, body {
  overflow-x: hidden;
  max-width: 100%;
}

body {
  font-family: 'Helvetica Neue', Arial, 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
  font-size: 14px;
  line-height: 1.7;
  color: #333333;
  background: #ffffff;
  padding-top: 52px; /* topbar height */
}

a {
  text-decoration: none;
  color: #0066CC;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ==========================================
   Layout
   ========================================== */
.inner {
  max-width: 480px;
  margin: 0 auto;
  padding: 0 12px;
}

.section {
  background: #ffffff;
  padding-bottom: 8px;
}

.section--cream {
  background: #FFF8F0;
}

/* ==========================================
   Top Fixed Bar
   ========================================== */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: #1a1a1a;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 52px;
}

.topbar-text {
  color: #ffffff;
  font-size: 13px;
  font-weight: bold;
  white-space: nowrap;
  flex-shrink: 0;
}

.topbar .btn-cta {
  font-size: 13px;
  padding: 8px 14px;
  width: auto;
}

/* ==========================================
   Section Titles
   ========================================== */
.sec-title {
  background: #1a1a1a !important;
  color: #ffffff;
  text-align: center;
  font-size: 18px;
  font-weight: bold;
  padding: 14px 12px;
  line-height: 1.5;
  margin: 0;
}

.sec-title .small {
  font-size: 14px;
  display: block;
  color: #FFD700;
  margin-bottom: 2px;
}

.sec-title .gold {
  color: #FFD700;
}

/* ==========================================
   CTA Button
   ========================================== */
.btn-cta {
  display: block;
  background: #E8820C;
  color: #ffffff;
  font-size: 16px;
  font-weight: bold;
  border-radius: 50px;
  padding: 14px 20px;
  width: 100%;
  text-align: center;
  white-space: nowrap;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s;
}

.btn-cta:hover {
  opacity: 0.88;
  color: #ffffff;
}

.btn-wrap {
  padding: 14px 0;
}

/* ==========================================
   Hero (Section 1)
   ========================================== */
.hero {
  background: #ffffff;
  margin: 0;
  padding: 0;
}

.hero-banner {
  line-height: 0;
  font-size: 0;
}

.hero-banner img {
  width: 100%;
  height: auto;
  display: block;
  image-rendering: -webkit-optimize-contrast;
}

.hero-img {
  background-color: #C8A04A;
  background-image: url('../images/hero-banner.jpg');
  background-size: cover;
  background-position: center;
  height: 200px;
  position: relative;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0.1) 60%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 14px;
}

.hero-sub {
  color: #ffffff;
  font-size: 12px;
  margin-bottom: 4px;
}

.hero-title {
  color: #FFD700;
  font-size: 22px;
  font-weight: bold;
  line-height: 1.3;
}

.hero-pr {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #8B0000;
  color: #ffffff;
  font-size: 10px;
  font-weight: bold;
  padding: 3px 8px;
  border-radius: 4px;
}

.hero-badges {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 10px 12px;
  background: #ffffff;
  max-width: 480px;
  margin: 0 auto;
}

.hero-badge {
  background: #8B0000;
  color: #ffffff;
  font-size: 13px;
  font-weight: bold;
  padding: 7px 8px;
  border-radius: 4px;
  flex: 1;
  text-align: center;
  white-space: nowrap;
}

.hero-bottom {
  background: #1a1a1a;
  text-align: center;
  padding: 10px 12px;
}

.hero-bottom span {
  color: #ffffff;
  font-weight: bold;
  font-size: 15px;
}

.hero-bottom em {
  color: #FFD700;
  font-size: 18px;
  font-weight: bold;
  font-style: normal;
}

/* ==========================================
   Rank Cards (Section 2)
   ========================================== */
.rank-card {
  background: #ffffff;
  border: 1px solid #DDDDDD;
  border-radius: 8px;
  margin: 8px 12px;
}

.rank-card--1 {
  border: 2px solid #FF0000;
}

/* 横3列レイアウト */
.rank-card-inner {
  display: flex;
  align-items: center;
  padding: 10px;
}

/* 左列：順位バッジ */
.rank-card-left {
  width: 40px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  align-self: stretch;
}

.rank-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: bold;
  width: 36px;
  text-align: center;
  line-height: 1.2;
}

.rank-badge--1 { background: #FFD700; color: #FFFFFF; border-radius: 4px; padding: 2px 4px; }
.rank-badge--2 { background: #C0C0C0; color: #FFFFFF; border-radius: 4px; padding: 2px 4px; }
.rank-badge--3 { background: #CD7F32; color: #FFFFFF; border-radius: 4px; padding: 2px 4px; }

/* 中列：バナー画像 */
.rank-card-mid {
  width: 90px;
  flex-shrink: 0;
  margin: 0 8px;
}

.rank-card-img {
  background-color: #C8402A;
  background-size: cover;
  background-position: center;
  width: 90px;
  height: 90px;
  border-radius: 4px;
}

.rank-card-caption {
  background: #FFD700;
  color: #333333;
  font-size: 10px;
  font-weight: bold;
  text-align: center;
  padding: 3px 2px;
  margin-top: 3px;
  border-radius: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 右列：情報・ボタン */
.rank-card-right {
  flex: 1;
  min-width: 0;
}

.rank-card-name {
  font-size: 14px;
  font-weight: bold;
  margin-bottom: 4px;
}

.rank-card-name a {
  color: #0066CC;
}

.rank-card-text {
  font-size: 12px;
  line-height: 1.5;
  margin: 4px 0 8px;
  color: #333333;
}

.rank-card-btn {
  /* ボタンは右列幅に収める */
}

.btn-cta--sm {
  font-size: 13px;
  padding: 8px 12px;
}

/* ==========================================
   Detail Card (Section 3, 5, 8)
   ========================================== */
.detail-card {
  background: #ffffff;
  border: 1px solid #DDDDDD;
  border-radius: 8px;
  margin: 16px 12px;
  overflow: hidden;
  padding-bottom: 16px;
}

.detail-card-header {
  padding: 14px 14px 0;
}

.detail-card-name {
  font-size: 18px;
  font-weight: bold;
}

.detail-card-name a {
  color: #0066CC;
}

.detail-card-catch {
  font-size: 14px;
  font-weight: bold;
  color: #CC0000;
  margin-top: 6px;
}

.detail-card-img {
  background-color: #C8402A;
  background-size: cover;
  background-position: center;
  height: 160px;
  margin: 12px 0 0;
  display: block;
}

.yellow-band {
  background: #FFD700;
  color: #333333;
  font-size: 14px;
  font-weight: bold;
  text-align: center;
  padding: 8px 12px;
  cursor: pointer;
}

.score-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border: 1px solid #DDDDDD;
  border-radius: 4px;
  margin: 12px 14px;
  background: #ffffff;
}

.score-label {
  font-size: 13px;
  font-weight: bold;
  color: #555555;
}

.score-stars {
  color: #E8820C;
  font-size: 16px;
}

.score-num {
  font-size: 16px;
  font-weight: bold;
  color: #333333;
}

.rating-table-wrap {
  padding: 0 14px;
  margin-bottom: 4px;
}

.rating-table {
  width: 100%;
  border-collapse: collapse;
}

.rating-table th,
.rating-table td {
  border: 1px solid #DDDDDD;
  padding: 8px 10px;
  font-size: 13px;
  vertical-align: middle;
}

.rating-table th {
  background: #F5F5F5;
  width: 42%;
  font-weight: bold;
  text-align: left;
}

.rating-table tr:nth-child(even) td {
  background: #F5F5F5;
}

.btn-wrap-pad {
  padding: 0 14px;
}

.features-band {
  background: #1a1a1a;
  color: #ffffff;
  font-size: 14px;
  font-weight: bold;
  padding: 10px 14px;
  margin: 16px 0 0;
}

.features-list {
  padding: 0 14px;
}

.features-list li {
  padding: 8px 0;
  font-size: 14px;
  line-height: 1.6;
  border-bottom: 1px solid #EEEEEE;
}

.features-list li:last-child {
  border-bottom: none;
}

.feat-icon {
  color: #0066CC;
  font-weight: bold;
  margin-right: 4px;
}

.feat-name {
  color: #CC0000;
  font-weight: bold;
}

.rank-num {
  display: inline-block;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  color: #ffffff;
  font-size: 15px;
  font-weight: bold;
  text-align: center;
  line-height: 26px;
  margin-right: 6px;
  vertical-align: middle;
}

.rank-num--1 { background: #FFD700; color: #FFFFFF; }
.rank-num--2 { background: #C0C0C0; color: #FFFFFF; }
.rank-num--3 { background: #CD7F32; color: #FFFFFF; }

.mt-12 { margin-top: 12px; }

/* ==========================================
   Comparison Table (Section 4)
   ========================================== */
.comparison-wrap {
  padding: 16px 12px;
  overflow-x: auto;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 11px;
}

.comparison-table th,
.comparison-table td {
  border: 1px solid #DDDDDD;
  padding: 6px 4px;
  text-align: center;
  vertical-align: top;
  word-break: break-all;
  overflow: hidden;
}


.comparison-table .col-label {
  width: 22%;
  background: #F5F5F5;
  font-size: 10px;
  font-weight: bold;
}

.comparison-table .col-co {
  width: 26%;
}

.comparison-table .col-co--1 {
  background: #FFF5F5;
}

/* まねきや列：左右を全行赤枠（tdとthに明示してcolへのマッチを排除） */
.comparison-table td.col-co--1,
.comparison-table th.col-co--1 {
  border-left: 2px solid #FF0000;
  border-right: 2px solid #FF0000;
}

/* まねきや列：ヘッダーに上ボーダー追加 */
.comparison-table thead th.col-co--1 {
  border-top: 2px solid #FF0000;
}

/* まねきや列：最終行に下ボーダー追加（枠を閉じる） */
.comparison-table tbody tr:last-child td.col-co--1 {
  border-bottom: 2px solid #FF0000;
}

.comparison-table .stars {
  color: #E8820C;
}

.mark-s { color: #CC0000; font-weight: bold; }
.mark-m { color: #E8820C; font-weight: bold; }
.mark-w { color: #777777; }

.comp-banner {
  height: 50px;
  background-color: #C8402A;
  background-size: cover;
  background-position: center;
  margin-bottom: 4px;
  border-radius: 2px;
}

.comp-rank-badge {
  display: inline-block;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  line-height: 20px;
  font-size: 11px;
  font-weight: bold;
  color: #ffffff;
  text-align: center;
}

.comp-rank-badge--1 { background: #FFD700; color: #FFFFFF; }
.comp-rank-badge--2 { background: #C0C0C0; color: #FFFFFF; }
.comp-rank-badge--3 { background: #CD7F32; color: #FFFFFF; }

.comp-name {
  font-size: 11px;
  font-weight: bold;
  margin-top: 2px;
}

.comp-btn {
  display: block;
  background: #E8820C;
  color: #ffffff;
  font-size: 10px;
  font-weight: bold;
  border-radius: 50px;
  padding: 8px 4px;
  text-align: center;
  white-space: nowrap;
}

.comp-btn:hover {
  opacity: 0.88;
  color: #ffffff;
}

/* ==========================================
   Tip Cards (Section 6)
   ========================================== */
.tip-card {
  border: 1px solid #DDDDDD;
  border-radius: 8px;
  background: #ffffff;
  padding: 14px;
  margin: 12px;
}

.tip-card + .tip-card {
  margin-top: 0;
}

.tip-card-title {
  font-size: 15px;
  font-weight: bold;
  color: #1a1a1a;
  margin-bottom: 8px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.tip-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 24px;
  background: #8B0000;
  color: #ffffff;
  border-radius: 50%;
  font-size: 13px;
  font-weight: bold;
  flex-shrink: 0;
  margin-top: 1px;
}

.tip-card-text {
  font-size: 14px;
  line-height: 1.7;
  color: #333333;
}

/* ==========================================
   Item Grid (Section 7)
   ========================================== */
.item-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 16px 12px;
}

.item-card {
  border: 1px solid #DDDDDD;
  border-radius: 6px;
  overflow: hidden;
  background: #ffffff;
}

.item-img {
  background-color: #8B7355;
  background-size: cover;
  background-position: center;
  aspect-ratio: 1 / 1;
  width: 100%;
}

.item-info {
  padding: 8px;
}

.item-name {
  font-size: 12px;
  font-weight: bold;
  line-height: 1.4;
  margin-bottom: 6px;
}

.price-badge {
  display: inline-block;
  background: #2E7D32;
  color: #ffffff;
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 3px;
  margin-bottom: 4px;
}

.item-price {
  font-size: 22px;
  font-weight: bold;
  color: #CC0000;
  line-height: 1.2;
}

/* ==========================================
   FAQ (Section 9)
   ========================================== */
.faq-list {
  padding: 0 12px;
}

.faq-item {
  border-bottom: 1px solid #DDDDDD;
}

.faq-item:first-child {
  border-top: 1px solid #DDDDDD;
}

.faq-toggle {
  width: 100%;
  background: none;
  border: none;
  padding: 14px 0;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  font-weight: bold;
  color: #333333;
  line-height: 1.5;
}

.faq-q-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #8B0000;
  color: #ffffff;
  font-size: 13px;
  font-weight: bold;
  flex-shrink: 0;
  margin-top: 1px;
}

.faq-icon {
  margin-left: auto;
  flex-shrink: 0;
  font-size: 22px;
  font-weight: bold;
  color: #E8820C;
  line-height: 1;
}

.faq-answer {
  display: none;
  padding: 4px 0 14px 34px;
  font-size: 14px;
  line-height: 1.7;
  color: #333333;
}

.faq-a-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #E8820C;
  color: #ffffff;
  font-size: 12px;
  font-weight: bold;
  margin-right: 6px;
  vertical-align: middle;
}

/* ==========================================
   Footer
   ========================================== */
/* ==========================================
   Fix ⑤: 1位カード背景色
   ========================================== */
.rank-card--1 {
  background: #FFF5F5;
}

/* ==========================================
   Fix ④: スマホ CTA ボタン調整
   ========================================== */
@media (max-width: 768px) {
  .btn-cta {
    white-space: nowrap;
    font-size: 13px;
    padding: 10px 12px;
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* 比較表のテーブル全体 */
  .comparison-table,
  .compare-table,
  section table {
    table-layout: auto;
    width: 100%;
  }

  /* 比較表の画像セル */
  .comparison-table td,
  .compare-table td,
  section table td {
    width: auto;
    min-width: 0;
    padding: 4px;
    vertical-align: top;
    overflow: hidden;
  }


  /* 比較表の左端ラベル列 */
  .comparison-table td:first-child,
  section table td:first-child {
    width: 22%;
    font-size: 10px;
  }

  /* 比較表の各社列 */
  .comparison-table td:not(:first-child),
  section table td:not(:first-child) {
    width: 26%;
  }
}

/* ==========================================
   Fix ⑦: FAQ 回答エリア崩れ防止
   ========================================== */
.faq-item {
  overflow: visible;
}

.faq-answer {
  width: 100%;
  box-sizing: border-box;
  word-break: break-word;
  overflow-wrap: break-word;
  overflow: visible;
}

/* ==========================================
   Images
   ========================================== */
img {
  width: 100%;
  height: auto;
  display: block;
}

table img {
  width: 100%;
  height: auto;
  display: block;
}

/* ==========================================
   Footer
   ========================================== */
.footer {
  background: #F5F5F5;
  text-align: center;
  padding: 20px;
  font-size: 12px;
  color: #666666;
}
