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

body {
    font-family: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

/* ヒーローセクション */
.hero {
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><radialGradient id="a"><stop offset="0%" stop-color="%23ffffff" stop-opacity="0.1"/><stop offset="100%" stop-color="%23ffffff" stop-opacity="0"/></radialGradient></defs><circle cx="300" cy="200" r="100" fill="url(%23a)" opacity="0.5"><animate attributeName="r" values="100;150;100" dur="4s" repeatCount="indefinite"/></circle><circle cx="700" cy="600" r="80" fill="url(%23a)" opacity="0.3"><animate attributeName="r" values="80;120;80" dur="3s" repeatCount="indefinite"/></circle><circle cx="500" cy="800" r="60" fill="url(%23a)" opacity="0.4"><animate attributeName="r" values="60;100;60" dur="5s" repeatCount="indefinite"/></circle></svg>') center/cover;
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

.hero-content {
    text-align: center;
    color: white;
    z-index: 2;
    max-width: 800px;
    padding: 0 20px;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    background: linear-gradient(45deg, #ffffff, #f0f8ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { filter: brightness(1); }
    50% { filter: brightness(1.2); }
}

.hero p {
    font-size: 1.5rem;
    margin-bottom: 20px;
    opacity: 0.9;
}

.credit-card-free {
    background: linear-gradient(45deg, #ff6b6b, #ffa500);
    color: white;
    padding: 20px;
    border-radius: 15px;
    font-size: 1.8em;
    font-weight: bold;
    text-align: center;
    margin: 30px 0;
    box-shadow: 0 10px 20px rgba(255, 107, 107, 0.3);
    animation: pulse 2s infinite;
}

.cta-button {
    display: inline-block;
    padding: 18px 50px;
    background: linear-gradient(45deg, #ff6b6b, #ee5a24);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(255, 107, 107, 0.3);
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(255, 107, 107, 0.4);
}

/* ナビゲーション */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 15px 0;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.logo {
    height: 40px;
    color: #667eea;
    font-weight: bold;
    font-size: 1.5rem;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #667eea;
}

/* 共通コンテナ */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 60px;
    color: #333;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(45deg, #667eea, #764ba2);
    border-radius: 2px;
}

/* 他社比較シミュレーション */
.comparison {
    padding: 100px 0;
    background: linear-gradient(135deg, #f8f9ff 0%, #ffffff 50%, #f0f8ff 100%);
}

.simulator-container {
    max-width: 600px;
    margin: 0 auto 60px;
}

.simulator-card {
    background: white;
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 15px 50px rgba(102, 126, 234, 0.1);
    border: 2px solid #667eea;
}

.simulator-card h3 {
    font-size: 1.8rem;
    color: #333;
    margin-bottom: 15px;
}

.data-selector {
    margin-top: 25px;
}

.selector-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 25px;
}

.selector-item {
    text-align: center;
}

.data-selector label {
    display: block;
    font-weight: 600;
    margin-bottom: 15px;
    color: #555;
}

.data-selector select {
    padding: 12px 20px;
    border: 2px solid #e1e8ed;
    border-radius: 10px;
    font-size: 1.1rem;
    background: white;
    color: #333;
    cursor: pointer;
    transition: border-color 0.3s ease;
    width: 100%;
}

.data-selector select:focus,
.selector-item select:focus {
    outline: none;
    border-color: #667eea;
}

/* 比較結果表示 */
.comparison-results {
    display: none;
    margin-top: 40px;
}

.comparison-results.show {
    display: block;
    animation: fadeInUp 0.8s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.current-vs-tsunagaru {
    display: grid;
    grid-template-columns: 1fr 80px 1fr;
    gap: 20px;
    align-items: center;
    margin-bottom: 40px;
}

.carrier-card {
    background: white;
    padding: 30px 25px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    position: relative;
}

.carrier-card.current {
    border: 2px solid #e74c3c;
}

.carrier-card.tsunagaru {
    border: 2px solid #27ae60;
    background: linear-gradient(135deg, #f0fff4 0%, #e8f8f5 100%);
}

.carrier-label {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    padding: 5px 15px;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 600;
}

.carrier-card.current .carrier-label {
    background: #e74c3c;
    color: white;
}

.carrier-card.tsunagaru .carrier-label {
    background: #27ae60;
    color: white;
}

.carrier-name {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: #333;
}

.carrier-price {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 10px;
}

.carrier-card.current .carrier-price {
    color: #e74c3c;
}

.carrier-card.tsunagaru .carrier-price {
    color: #27ae60;
}

.vs-arrow {
    text-align: center;
    font-size: 2rem;
    color: #667eea;
    font-weight: bold;
}

.recommended-plan {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    margin-top: 30px;
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.3);
}

.recommended-plan h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.plan-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.plan-detail-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 10px;
}

.plan-detail-item h4 {
    margin-bottom: 5px;
}

.comparison-table {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.1);
    margin-bottom: 50px;
}

.table-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    font-weight: 600;
    font-size: 1.1rem;
}

.table-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.3s ease;
}

.table-row:hover {
    background-color: #f8f9ff;
}

.table-row.highlight {
    background: linear-gradient(135deg, #fff3e0 0%, #ffebe0 100%);
    border-left: 5px solid #ff6b6b;
}

.table-row.highlight:hover {
    background: linear-gradient(135deg, #fff0e0 0%, #ffe0d0 100%);
}

.table-cell {
    padding: 20px 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.service-name {
    position: relative;
}

.badge {
    display: inline-block;
    background: linear-gradient(45deg, #ff6b6b, #ee5a24);
    color: white;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    margin-left: 8px;
    font-weight: 600;
}

.price {
    font-weight: 700;
    font-size: 1.2rem;
    color: #333;
}

.savings {
    font-weight: 600;
}

.savings.positive {
    color: #e74c3c;
}

.savings.negative {
    color: #27ae60;
}

.table-row.highlight .price {
    color: #ff6b6b;
}

.savings-display {
    text-align: center;
    margin-bottom: 60px;
}

.savings-card {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
    color: white;
    padding: 40px 30px;
    border-radius: 20px;
    display: inline-block;
    min-width: 300px;
    box-shadow: 0 15px 40px rgba(255, 107, 107, 0.3);
    animation: pulse-savings 3s infinite;
}

@keyframes pulse-savings {
    0%, 100% {
        box-shadow: 0 15px 40px rgba(255, 107, 107, 0.3);
    }
    50% {
        box-shadow: 0 15px 40px rgba(255, 107, 107, 0.5);
    }
}

.savings-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.savings-amount {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 10px;
}

.comparison-points h3 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 40px;
    color: #333;
}

.points-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.point-card {
    background: white;
    padding: 30px 25px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
}

.point-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.1);
}

.point-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.point-card h4 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
}

.point-card p {
    color: #666;
    line-height: 1.6;
}

/* 料金プランセクション */
.pricing {
    padding: 100px 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.pricing-card {
    background: white;
    border-radius: 25px;
    padding: 40px 30px;
    text-align: center;
    position: relative;
    transition: all 0.3s ease;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.08);
    border: 2px solid transparent;
}

.pricing-card.popular {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    transform: scale(1.05);
}

.pricing-card.popular .plan-name {
    color: white;
}

.pricing-card.popular .price {
    color: white;
}

.pricing-card:hover {
    transform: translateY(-10px);
    border-color: #667eea;
}

.pricing-card.popular:hover {
    transform: scale(1.08) translateY(-10px);
}

.plan-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(45deg, #ff6b6b, #ee5a24);
    color: white;
    padding: 8px 25px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.data-amount {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 10px;
    background: linear-gradient(45deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.pricing-card.popular .data-amount {
    background: linear-gradient(45deg, #ffffff, #f0f8ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.plan-name {
    color: #666;
    margin-bottom: 20px;
    font-size: 1.2rem;
    font-weight: 600;
}

.plan-description {
    background: rgba(102, 126, 234, 0.1);
    padding: 15px;
    border-radius: 10px;
    margin: 15px 0;
    font-size: 0.95em;
    line-height: 1.4;
}

.pricing-card.popular .plan-description {
    background: rgba(255,255,255,0.1);
}

.pricing-card .price {
    font-size: 2rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 30px;
}

.price-small {
    font-size: 1rem;
    font-weight: 400;
    color: #666;
}

.pricing-card.popular .price-small {
    color: rgba(255, 255, 255, 0.8);
}

.plan-features {
    list-style: none;
    margin-bottom: 30px;
}

.plan-features li {
    padding: 8px 0;
    color: #666;
    position: relative;
    padding-left: 25px;
}

.plan-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #667eea;
    font-weight: bold;
}

.pricing-card.popular .plan-features li {
    color: rgba(255, 255, 255, 0.9);
}

.pricing-card.popular .plan-features li::before {
    color: white;
}

.plan-button {
    display: inline-block;
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 15px 40px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    text-decoration: none;
}

.plan-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.pricing-card.popular .plan-button {
    background: white;
    color: #667eea;
}

.pricing-card.popular .plan-button:hover {
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.3);
}

/* フッターCTA */
.footer-cta {
    padding: 100px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    text-align: center;
    color: white;
}

.footer-cta h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.footer-cta p {
    font-size: 1.3rem;
    margin-bottom: 40px;
    opacity: 0.9;
}

/* アニメーション効果 */
.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(102, 126, 234, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(102, 126, 234, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(102, 126, 234, 0);
    }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1.2rem;
    }

    .credit-card-free {
        font-size: 1.4em;
        padding: 15px;
    }

    .nav-links {
        display: none;
    }

    .section-title {
        font-size: 2rem;
    }

    .data-amount {
        font-size: 2rem;
    }

    .pricing-card .price {
        font-size: 1.5rem;
    }

    .savings-amount {
        font-size: 2rem;
    }

    .pricing-grid,
    .points-grid {
        grid-template-columns: 1fr;
    }

    .table-header,
    .table-row {
        grid-template-columns: 1fr;
        text-align: left;
    }

    .table-cell {
        justify-content: flex-start;
        padding: 15px 20px;
    }

    .table-header .table-cell:not(:first-child) { 
        display: none; 
    }

    .table-row .table-cell:not(:first-child) { 
        display: none; 
    }

    .table-row .table-cell:first-child::after {
        content: attr(data-prices);
        display: block;
        font-size: 0.9rem;
        color: #666;
        margin-top: 8px;
        line-height: 1.4;
    }
}