/* ========================================
   料金ページ専用スタイル
   ======================================== */

/* ヒーロー */
.pricing-hero {
    position: relative;
    overflow: hidden;
    height: 410px;
    padding-top: 30px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.pricing-hero-label {
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    color: var(--gold);
    margin-bottom: var(--space-sm);
}

.pricing-hero-title {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 900;
    color: #fff;
    margin-bottom: var(--space-md);
}

.pricing-hero-subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
}

/* ベースプラン */
.pricing-base {
    padding: var(--space-2xl) 0;
    background: var(--gray-50);
}

.base-plan-card {
    max-width: 600px;
    margin: 0 auto;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.base-plan-header {
    background: linear-gradient(135deg, var(--navy) 0%, #1a365d 100%);
    padding: var(--space-xl);
    text-align: center;
}

.base-plan-badge {
    display: inline-block;
    background: var(--gold);
    color: var(--navy);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    padding: 0.25rem 1rem;
    border-radius: 100px;
    margin-bottom: var(--space-sm);
}

.base-plan-name {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: var(--space-md);
}

.base-plan-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.25rem;
    color: #fff;
}

.price-prefix {
    font-size: 1rem;
    font-weight: 500;
}

.price-amount {
    font-family: var(--font-serif);
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1;
}

.price-suffix {
    font-size: 1.25rem;
    font-weight: 500;
}

.price-tax {
    font-size: 0.875rem;
    opacity: 0.8;
}

.base-plan-note {
    margin-top: var(--space-sm);
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
}

.base-plan-content {
    padding: var(--space-lg);
}

.base-plan-table {
    width: 100%;
}

.base-plan-table tr {
    border-bottom: 1px solid var(--gray-200);
}

.base-plan-table tr:last-child {
    border-bottom: none;
}

.base-plan-table th,
.base-plan-table td {
    padding: var(--space-md);
    text-align: left;
    vertical-align: middle;
}

.base-plan-table th {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-weight: 600;
    color: var(--navy);
    white-space: nowrap;
}

.base-plan-table td {
    color: var(--gray-700);
}

.feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    flex-shrink: 0;
}

.feature-icon-coaching {
    background: #e6f4ea;
}
.feature-icon-coaching::before {
    content: "📹";
    font-size: 1rem;
}

.feature-icon-feedback {
    background: #fff3e0;
}
.feature-icon-feedback::before {
    content: "💬";
    font-size: 1rem;
}

.feature-icon-ai {
    background: #e3f2fd;
}
.feature-icon-ai::before {
    content: "🤖";
    font-size: 1rem;
}

.base-plan-cta {
    padding: 0 var(--space-lg) var(--space-lg);
}

.base-plan-cta .btn {
    width: 100%;
    justify-content: center;
}

/* なぜこの価格で */
.pricing-why {
    padding: var(--space-2xl) 0;
}

.why-content {
    max-width: 900px;
    margin: 0 auto;
}

.why-intro {
    text-align: center;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: var(--space-lg);
}

.why-cards {
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-xl);
}

.why-cards-triple .why-card {
    flex: 1;
    max-width: 260px;
}

.why-card {
    padding: var(--space-lg);
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    text-align: center;
}

.why-card-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto var(--space-md);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.why-card-icon svg {
    width: 32px;
    height: 32px;
}

.why-card-engineer .why-card-icon {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    color: #2e7d32;
}

.why-card-human .why-card-icon {
    background: linear-gradient(135deg, #fce4ec 0%, #f8bbd9 100%);
    color: var(--red);
}

.why-card-ai .why-card-icon {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    color: var(--blue);
}

.why-card-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: var(--space-sm);
}

.why-card-desc {
    font-size: 0.875rem;
    color: var(--gray-600);
    line-height: 1.6;
}

.why-card-list {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.why-card-list li {
    position: relative;
    padding-left: 1.2em;
    font-size: 0.8rem;
    color: var(--gray-600);
    line-height: 1.7;
    margin-bottom: 0.25rem;
}

.why-card-list li::before {
    content: "・";
    position: absolute;
    left: 0;
    color: var(--gray-400);
}

.why-connector {
    display: flex;
    align-items: center;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gray-400);
    flex-shrink: 0;
}

/* カルーセル関連（デスクトップでは通常表示） */
.why-cards-wrapper {
    display: contents;
}

.why-result {
    text-align: center;
    padding: var(--space-lg);
    background: linear-gradient(135deg, var(--navy) 0%, #1a365d 100%);
    border-radius: 12px;
    color: #fff;
}

.why-result p {
    font-size: 1rem;
    line-height: 1.8;
}

.why-result strong {
    color: var(--gold);
}

/* オプション */
.pricing-options {
    padding: var(--space-2xl) 0;
    background: var(--gray-50);
}

.options-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
    max-width: 900px;
    margin: 0 auto;
}

.option-card {
    background: #fff;
    border-radius: 16px;
    padding: var(--space-lg);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.option-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.option-header {
    margin-bottom: var(--space-md);
}

.option-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: var(--space-xs);
}

.option-price {
    display: flex;
    align-items: baseline;
    gap: 0.125rem;
}

.option-price-prefix {
    font-size: 1rem;
    font-weight: 700;
    color: var(--red);
}

.option-price-amount {
    font-family: var(--font-serif);
    font-size: 1.75rem;
    font-weight: 900;
    color: var(--navy);
}

.option-price-suffix {
    font-size: 0.875rem;
    color: var(--gray-600);
}

.option-desc {
    font-size: 0.875rem;
    color: var(--gray-600);
    line-height: 1.6;
}

/* 料金例 */
.pricing-examples {
    padding: var(--space-2xl) 0;
}

.examples-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-md);
    max-width: 900px;
    margin: 0 auto;
}

.example-card {
    background: #fff;
    border: 2px solid var(--gray-200);
    border-radius: 12px;
    padding: var(--space-lg);
    text-align: center;
    transition: border-color 0.3s ease;
}

.example-card:hover {
    border-color: var(--blue);
}

.example-persona {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gray-600);
    margin-bottom: var(--space-sm);
}

.example-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.125rem;
    margin-bottom: var(--space-xs);
}

.example-price-prefix {
    font-size: 0.75rem;
    color: var(--gray-500);
}

.example-price-amount {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--navy);
}

.example-price-suffix {
    font-size: 0.875rem;
    color: var(--gray-600);
}

.example-detail {
    font-size: 0.75rem;
    color: var(--gray-500);
}

/* 他サービス比較 */
.pricing-compare {
    padding: var(--space-2xl) 0;
    background: var(--gray-50);
}

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

.compare-table {
    width: 100%;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.compare-table th,
.compare-table td {
    padding: var(--space-md) var(--space-lg);
    text-align: left;
}

.compare-table thead {
    background: var(--navy);
    color: #fff;
}

.compare-table thead th {
    font-weight: 600;
    font-size: 0.875rem;
}

.compare-table tbody tr {
    border-bottom: 1px solid var(--gray-200);
}

.compare-table tbody tr:last-child {
    border-bottom: none;
}

.compare-table tbody td {
    color: var(--gray-700);
}

.compare-highlight {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
}

.compare-highlight td {
    color: var(--navy) !important;
}

.compare-price-other {
    color: var(--gray-500);
}

.compare-price-cheap {
    color: var(--gray-400);
}

.compare-price-saiteki {
    font-weight: 700;
    color: var(--red);
}

.compare-none {
    color: var(--gray-400);
}

.compare-best {
    font-weight: 600;
    color: var(--blue);
}

/* CTA */
.pricing-cta {
    padding: var(--space-2xl) 0;
    background: linear-gradient(135deg, var(--navy) 0%, #1a365d 100%);
    text-align: center;
}

.pricing-cta .cta-content {
    max-width: 600px;
    margin: 0 auto;
}

.pricing-cta .cta-title {
    font-family: var(--font-serif);
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 900;
    color: #fff;
    line-height: 1.4;
    margin-bottom: var(--space-md);
}

.pricing-cta .cta-title .big-number {
    font-size: 1.5em;
    color: var(--gold);
}

.pricing-cta .cta-title-sub {
    font-size: 0.8em;
    opacity: 0.9;
}

.pricing-cta .cta-desc {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: var(--space-lg);
}

.pricing-cta .cta-buttons {
    display: flex;
    justify-content: center;
}

/* ========================================
   レスポンシブ - モバイルファースト
   ======================================== */
@media (max-width: 768px) {
    /* セクション間の余白を追加 */
    .pricing-base,
    .pricing-why,
    .pricing-options,
    .pricing-examples,
    .pricing-compare {
        padding: var(--space-lg) 0;
        margin-bottom: var(--space-md);
    }

    /* ヒーローセクション */
    .pricing-hero {
        height: 300px;
    }

    .pricing-hero-label {
        font-size: 0.75rem;
        margin-bottom: 4px;
    }

    .pricing-hero-title {
        font-size: 1.5rem;
        margin-bottom: var(--space-xs);
    }

    .pricing-hero-subtitle {
        font-size: 0.9rem;
    }

    /* ベースプランセクション */
    .pricing-base {
        padding: var(--space-md) 0;
    }

    .base-plan-card {
        margin: 0 12px;
        border-radius: 16px;
    }

    .base-plan-header {
        padding: var(--space-md) var(--space-sm);
    }

    .base-plan-badge {
        font-size: 0.7rem;
        padding: 3px 12px;
        margin-bottom: 6px;
    }

    .base-plan-name {
        font-size: 1.2rem;
        margin-bottom: var(--space-sm);
    }

    .price-amount {
        font-size: 2.5rem;
    }

    .price-prefix {
        font-size: 0.9rem;
    }

    .price-suffix {
        font-size: 1rem;
    }

    .price-tax {
        font-size: 0.75rem;
    }

    .base-plan-note {
        font-size: 0.8rem;
        margin-top: 6px;
    }

    /* ベースプランテーブル → カード型変換 */
    .base-plan-content {
        padding: var(--space-sm);
    }

    .base-plan-table,
    .base-plan-table tbody,
    .base-plan-table tr {
        display: block;
        width: 100%;
    }

    .base-plan-table tr {
        background: var(--gray-50);
        border-radius: 10px;
        padding: 12px;
        margin-bottom: 8px;
        border: none;
    }

    .base-plan-table tr:last-child {
        margin-bottom: 0;
    }

    .base-plan-table th {
        display: block;
        font-size: 0.8rem;
        font-weight: 700;
        color: var(--navy);
        margin-bottom: 4px;
        padding: 0;
    }

    .base-plan-table td {
        display: block;
        font-size: 0.85rem;
        color: var(--gray-600);
        line-height: 1.5;
        padding: 0;
    }

    .base-plan-cta {
        padding: var(--space-sm);
    }

    .base-plan-cta .btn {
        padding: 14px 24px;
        font-size: 1rem;
        font-weight: 700;
    }

    /* セクション共通 */
    .section-header {
        margin-bottom: var(--space-md);
    }

    .section-label {
        font-size: 0.7rem;
        margin-bottom: 4px;
    }

    .section-title {
        font-size: 1.2rem;
        margin-bottom: 4px;
    }

    .section-subtitle {
        font-size: 0.85rem;
    }

    /* なぜこの価格で - 手動スワイプカルーセル */
    .pricing-why {
        padding: var(--space-md) 0;
    }

    .why-intro {
        font-size: 0.9rem;
        margin-bottom: var(--space-sm);
    }

    /* カルーセルコンテナ（フェード効果用） */
    .why-content {
        position: relative;
    }

    /* 左右フェードグラデーション（スクロール可能を示す） */
    .why-content::before,
    .why-content::after {
        content: '';
        position: absolute;
        top: 0;
        bottom: 0;
        width: 24px;
        pointer-events: none;
        z-index: 2;
    }

    .why-content::before {
        left: 0;
        background: linear-gradient(to right, #fff 0%, transparent 100%);
    }

    .why-content::after {
        right: 0;
        background: linear-gradient(to left, #fff 0%, transparent 100%);
    }

    /* カルーセルラッパー */
    .why-cards-wrapper {
        display: block;
        overflow-x: auto;
        overflow-y: hidden;
        margin: 0 0 var(--space-md);
        padding: 8px 20px;
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
        scrollbar-width: none;
        /* スナップ設定 */
        scroll-snap-type: x mandatory;
        scroll-padding: 20px;
    }

    .why-cards-wrapper::-webkit-scrollbar {
        display: none;
    }

    /* スクロール可能なカード列 */
    .why-cards {
        display: flex;
        gap: 12px;
        margin-bottom: 0;
        width: max-content;
    }

    /* カード：コンパクトサイズ + スナップ */
    .why-cards-triple .why-card {
        min-width: 220px;
        max-width: 220px;
        flex-shrink: 0;
        scroll-snap-align: start;
    }

    /* 初回アニメーション：チラ見せスライド */
    @keyframes swipe-hint {
        0% { transform: translateX(0); }
        40% { transform: translateX(-40px); }
        100% { transform: translateX(0); }
    }

    .why-cards {
        animation: swipe-hint 1.2s ease-out 0.5s 1;
    }

    /* 古い矢印アイコンは削除（.swipe-hintに置き換え） */

    .why-connector {
        display: none;
    }

    /* スワイプヒント（指アイコン + テキスト + 矢印） */
    .swipe-hint {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 4px;
        font-size: 0.75rem;
        color: #888;
        margin-top: 8px;
    }

    .swipe-hint-icon {
        font-size: 0.9rem;
    }

    .swipe-hint-arrow {
        display: inline-block;
        animation: swipe-arrow 1s ease-in-out infinite;
    }

    @keyframes swipe-arrow {
        0%, 100% { transform: translateX(0); }
        50% { transform: translateX(5px); }
    }

    .why-card {
        padding: var(--space-sm);
        border-radius: 12px;
    }

    .why-card-icon {
        width: 36px;
        height: 36px;
        margin-bottom: 8px;
    }

    .why-card-icon svg {
        width: 20px;
        height: 20px;
    }

    .why-card-title {
        font-size: 0.85rem;
        margin-bottom: 6px;
    }

    .why-card-list {
        text-align: left;
    }

    .why-card-list li {
        padding-left: 1em;
        font-size: 0.75rem;
        line-height: 1.5;
        margin-bottom: 2px;
    }

    .why-card-list li::before {
        display: block;
    }

    .why-connector {
        display: none;
    }

    .why-result {
        margin: 0 12px;
        padding: var(--space-sm);
        border-radius: 10px;
    }

    .why-result p {
        font-size: 0.85rem;
        line-height: 1.6;
    }

    /* オプションセクション - 2列グリッド */
    .pricing-options {
        padding: var(--space-md) 0;
    }

    .options-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        padding: 0 12px;
    }

    .option-card {
        padding: 12px;
        border-radius: 12px;
    }

    .option-header {
        margin-bottom: 6px;
    }

    .option-name {
        font-size: 0.9rem;
        margin-bottom: 2px;
    }

    .option-price-amount {
        font-size: 1.3rem;
    }

    .option-price-suffix {
        font-size: 0.7rem;
    }

    .option-desc {
        font-size: 0.75rem;
        line-height: 1.4;
    }

    /* 料金例セクション - 2列グリッド */
    .pricing-examples {
        padding: var(--space-md) 0;
    }

    .examples-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        padding: 0 12px;
    }

    .example-card {
        padding: 12px;
        border-radius: 10px;
    }

    .example-persona {
        font-size: 0.8rem;
        margin-bottom: 4px;
    }

    .example-price-prefix {
        font-size: 0.7rem;
    }

    .example-price-amount {
        font-size: 1.3rem;
    }

    .example-price-suffix {
        font-size: 0.75rem;
    }

    .example-detail {
        font-size: 0.75rem;
    }

    /* 比較テーブル → カード型変換 */
    .pricing-compare {
        padding: var(--space-md) 0;
    }

    .compare-table-wrapper {
        padding: 0 12px;
        overflow-x: visible;
    }

    .compare-table,
    .compare-table thead,
    .compare-table tbody,
    .compare-table tr {
        display: block;
    }

    .compare-table {
        background: transparent;
        box-shadow: none;
    }

    .compare-table thead {
        display: none;
    }

    .compare-table tbody tr {
        background: #fff;
        border-radius: 12px;
        padding: 12px;
        margin-bottom: 10px;
        border: 1px solid var(--gray-200);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    }

    .compare-table tbody tr:last-child {
        margin-bottom: 0;
    }

    .compare-highlight {
        border: 2px solid var(--gold) !important;
        box-shadow: 0 4px 12px rgba(212, 175, 70, 0.2) !important;
    }

    .compare-table td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 6px 0;
        border: none;
        font-size: 0.85rem;
    }

    .compare-table td::before {
        content: attr(data-label);
        color: var(--gray-500);
        font-size: 0.75rem;
        font-weight: 500;
        flex-shrink: 0;
        margin-right: 8px;
    }

    .compare-table td:first-child {
        font-weight: 700;
        padding-bottom: 8px;
        margin-bottom: 4px;
        border-bottom: 1px solid var(--gray-100);
    }

    .compare-table td:first-child::before {
        display: none;
    }

    /* CTA - 視認性向上 */
    .pricing-cta {
        padding: var(--space-lg) 12px;
    }

    .pricing-cta .cta-title {
        font-size: 1.2rem;
        margin-bottom: var(--space-sm);
    }

    .pricing-cta .cta-title .big-number {
        font-size: 1.4em;
    }

    .pricing-cta .cta-title-sub {
        font-size: 0.8em;
    }

    .pricing-cta .cta-desc {
        font-size: 0.9rem;
        margin-bottom: var(--space-md);
    }

    .pricing-cta .cta-buttons {
        width: 100%;
    }

    .pricing-cta .btn-xlarge {
        width: 100%;
        padding: 16px 24px;
        font-size: 1rem;
        font-weight: 700;
        box-shadow: 0 6px 20px rgba(212, 175, 70, 0.4);
        border: 2px solid rgba(255, 255, 255, 0.2);
    }
}

/* 小型スマートフォン (420px以下) */
@media (max-width: 420px) {
    .options-grid {
        grid-template-columns: 1fr;
    }

    .examples-grid {
        grid-template-columns: 1fr;
    }

    .price-amount {
        font-size: 2.2rem;
    }

    .pricing-hero-title {
        font-size: 1.3rem;
    }

    .why-cards-triple .why-card {
        min-width: 180px;
        max-width: 180px;
    }
}
