/* ========================================
   他社比較ページ
======================================== */

/* ヒーロー */
.comparison-hero {
    padding: 150px 20px 80px;
    text-align: center;
    background-color: #F2E6D0;
    border-bottom: 1px solid #C4A97A;
}

.comparison-hero h1 {
    font-size: 48px;
    font-weight: 700;
    color: #2d2d2d;
    margin-bottom: 20px;
    letter-spacing: 0.1em;
}

.comparison-hero h1::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: #2dbe6c;
    margin: 18px auto 0;
    border-radius: 2px;
}

.comparison-hero .lead {
    font-size: 17px;
    color: #7A6245;
    line-height: 1.8;
    max-width: 640px;
    margin: 0 auto;
}

/* ========================================
   料金比較セクション
======================================== */
.price-compare-section {
    padding: 100px 20px;
    background-color: #E4D0AA;
}

.compare-container {
    max-width: 960px;
    margin: 0 auto;
}

.compare-subtitle {
    text-align: center;
    font-size: 15px;
    color: #7A6245;
    margin-top: -50px;
    margin-bottom: 60px;
}

/* 縦棒グラフ */
.bar-chart-v {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 20px;
    height: 320px;
    padding-bottom: 0;
}

.bar-col {
    flex: 1;
    max-width: 160px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    height: 100%;
}

/* 棒の上に表示する金額 */
.bar-price {
    font-size: 13px;
    font-weight: 700;
    color: #7A6245;
    margin-bottom: 8px;
    text-align: center;
    white-space: nowrap;
}

.bar-price.green { color: #2dbe6c; }

/* 棒本体 */
.bar-body {
    width: 100%;
    border-radius: 4px 4px 0 0;
    transition: height 1.2s cubic-bezier(.4,0,.2,1);
    min-height: 8px;
}

.bar-body.competitor { background-color: #C0B49E; }
.bar-body.green-gym  { background-color: #2dbe6c; }

.bar-col.highlight .bar-body.green-gym {
    box-shadow: 0 -4px 16px rgba(45,190,108,0.35);
}

/* 棒の下のラベル */
.bar-name {
    margin-top: 12px;
    font-size: 13px;
    font-weight: 700;
    color: #2d2d2d;
    text-align: center;
    line-height: 1.4;
}

.bar-name.green { color: #2dbe6c; }

.bar-name span {
    display: block;
    font-size: 11px;
    font-weight: 400;
    color: #7A6245;
    margin-top: 3px;
}

/* モバイルでは小さく */
@media (max-width: 640px) {
    .bar-chart-v { gap: 10px; height: 240px; }
    .bar-price { font-size: 11px; }
    .bar-name { font-size: 11px; }
    .bar-name span { font-size: 10px; }
}

/* ========================================
   機能比較テーブル
======================================== */
.feature-compare-section {
    padding: 100px 20px;
    background-color: #F2E6D0;
}

.feature-note {
    text-align: center;
    font-size: 13px;
    color: #7A6245;
    margin-top: -50px;
    margin-bottom: 50px;
}

.compare-table-wrap {
    max-width: 960px;
    margin: 0 auto;
    overflow-x: auto;
}

.compare-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 15px;
}

.compare-table th,
.compare-table td {
    padding: 18px 20px;
    border-bottom: 1px solid #C4A97A;
    text-align: center;
}

.compare-table th {
    background-color: #E4D0AA;
    font-weight: 700;
    font-size: 14px;
    color: #2d2d2d;
    letter-spacing: 0.05em;
    position: sticky;
    top: 0;
}

.compare-table th.green-col,
.compare-table td.green-col {
    background-color: rgba(45, 190, 108, 0.08);
    border-left: 2px solid #2dbe6c;
    border-right: 2px solid #2dbe6c;
}

.compare-table th.green-col {
    background-color: #2dbe6c;
    color: #fff;
    border-radius: 4px 4px 0 0;
}

.compare-table td:first-child {
    text-align: left;
    font-weight: 600;
    color: #2d2d2d;
    background-color: #F8F0E3;
}

.check { color: #2dbe6c; font-size: 20px; font-weight: 700; }
.cross { color: #C4A97A; font-size: 20px; }
.triangle { color: #E8A030; font-size: 18px; }

.compare-table tr:last-child th.green-col,
.compare-table tr:last-child td.green-col {
    border-radius: 0 0 4px 4px;
    border-bottom: 2px solid #2dbe6c;
}

/* ========================================
   コスパセクション
======================================== */
.cost-section {
    padding: 100px 20px;
    background-color: #E4D0AA;
}

.cost-grid {
    max-width: 960px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.cost-card {
    background-color: #F8F0E3;
    border: 1px solid #C4A97A;
    border-radius: 6px;
    padding: 36px 28px;
    text-align: center;
    transition: all 0.3s;
}

.cost-card.featured {
    border-color: #2dbe6c;
    border-width: 2px;
    box-shadow: 0 4px 20px rgba(45,190,108,0.15);
}

.cost-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.cost-card .gym-name {
    font-size: 13px;
    color: #7A6245;
    font-weight: 600;
    letter-spacing: 0.1em;
    margin-bottom: 14px;
    text-transform: uppercase;
}

.cost-card.featured .gym-name { color: #2dbe6c; }

.cost-card .price-per {
    font-size: 36px;
    font-weight: 700;
    color: #2d2d2d;
    line-height: 1;
    margin-bottom: 6px;
}

.cost-card.featured .price-per { color: #2dbe6c; }

.cost-card .price-unit {
    font-size: 13px;
    color: #7A6245;
    margin-bottom: 20px;
}

.cost-card .cost-note {
    font-size: 13px;
    color: #7A6245;
    line-height: 1.7;
    border-top: 1px solid #C4A97A;
    padding-top: 16px;
}

/* ========================================
   CTA
======================================== */
.comparison-cta {
    padding: 100px 20px;
    background-color: #2d2d2d;
    text-align: center;
}

.comparison-cta h2 {
    font-size: 34px;
    font-weight: 700;
    color: #F2E6D0;
    margin-bottom: 20px;
    letter-spacing: 0.05em;
}

.comparison-cta p {
    font-size: 16px;
    color: #B9BCC2;
    margin-bottom: 40px;
    line-height: 1.8;
}

/* ========================================
   レスポンシブ
======================================== */
@media (max-width: 768px) {
    .comparison-hero h1 { font-size: 30px; }

    .bar-label { width: 100px; min-width: 100px; font-size: 13px; }
    .bar-fill { font-size: 13px; }

    .cost-grid { grid-template-columns: 1fr; gap: 16px; }

    .compare-table { font-size: 13px; }
    .compare-table th, .compare-table td { padding: 12px 10px; }
}
