:root {
    --primary-color: #4db8e8;
    --secondary-color: #3498db;
    --text-color: #e8e8e8;
    --background-color: #1a1a1a;
    --accent-color: #52c4f0;
}

/* フォールバック色の追加 */
* {
    box-sizing: border-box;
}

html {
    background-color: #1a1a1a !important;
}

body {
    font-family: 'Roboto', 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-color, #e8e8e8);
    background-color: var(--background-color, #1a1a1a) !important;
    background-image: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%) !important;
    margin: 0;
    padding: 0;
    padding-top: 70px; /* ナビゲーションバーの高さ分 */
    font-display: swap;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
}

/* ナビゲーションバー */
.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #4db8e8;
    z-index: 1000;
    height: 70px;
}

.nav-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    height: 100%;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-logo-img {
    width: 40px;
    height: 40px;
    border-radius: 8px;
}

.nav-logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-link {
    color: #e8e8e8;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 8px 16px;
    border-radius: 20px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--primary-color);
    background: rgba(77, 184, 232, 0.1);
}

.nav-link.active {
    color: var(--primary-color);
    background: rgba(77, 184, 232, 0.2);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: #e8e8e8;
    border-radius: 2px;
    transition: 0.3s;
}

/* モバイル対応 */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(26, 26, 26, 0.98);
        flex-direction: column;
        padding: 20px;
        gap: 15px;
        border-top: 1px solid #4db8e8;
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    overflow: visible;
    padding: 20px;
    box-sizing: border-box;
}

header {
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.95), rgba(45, 45, 45, 0.95)), 
                linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    background-image: linear-gradient(135deg, rgba(26, 26, 26, 0.9), rgba(45, 45, 45, 0.9)), url('haikei.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-color: #1a1a1a !important;
    color: #e8e8e8;
    padding: 2rem 0;
    position: relative;
    overflow: hidden;
    will-change: transform;
}

@media (max-width: 768px) {
    header {
        background-attachment: scroll;
    }
}

.header-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.logo-container {
    flex: 0 0 auto;
    margin-right: 2rem;
    background-color: rgba(42, 42, 42, 0.9);
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #4db8e8;
}

.logo {
    max-width: 150px;
    height: auto;
    filter: drop-shadow(2px 2px 3px rgba(0,0,0,0.2));
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.logo-container img {
    content: url('WHITE-icon.webp');
}

.header-text {
    flex: 1 1 auto;
    background-color: rgba(42, 42, 42, 0.9);
    padding: 1rem;
    border-radius: 5px;
    border: 1px solid #4db8e8;
}

header h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 3.5rem;
    font-weight: 700;
    margin: 0;
    color: var(--primary-color);
    text-shadow: 1px 1px 2px rgba(255,255,255,0.5);
    letter-spacing: 1px;
}

header p {
    font-size: 1.2rem;
    margin: 0.5rem 0 0;
    color: var(--secondary-color);
}

.hero-subtitle {
    font-size: 1.3rem !important;
    font-weight: 600;
    color: #4db8e8 !important;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
    margin-bottom: 1rem !important;
}

.hero-badges {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 1rem;
}

.badge {
    background: linear-gradient(135deg, #4db8e8, #52c4f0);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(77, 184, 232, 0.3);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* パフォーマンス最適化 */
.fade-in {
    will-change: opacity, transform;
}

.cta-button-hero,
.cta-button-final,
.benefit-card {
    will-change: transform;
}

/* GPU加速 */
.hero-section::before,
.benefit-card::before {
    transform: translateZ(0);
}

/* スクロール最適化 */
html {
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    .fade-in {
        opacity: 1 !important;
        transform: translateY(0) !important;
    }
    
    .badge {
        animation: none;
    }
    
    .urgency-banner {
        animation: none;
    }
    
    .cta-button-hero.primary {
        animation: none;
    }
    
    .cta-button-final.primary {
        animation: none;
    }
}

main {
    padding: 2rem 0;
}

section {
    background-color: #2a2a2a !important;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    border: 1px solid #404040;
    padding: 2rem;
    margin-bottom: 2rem;
    box-sizing: border-box;
    color: var(--text-color, #e8e8e8) !important;
}

.hero-section {
    background: linear-gradient(135deg, #1a1a1a, #2d2d2d);
    border: 2px solid #4db8e8;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(77, 184, 232, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.hero-headline {
    font-size: 2.5rem;
    text-align: center;
    background: linear-gradient(135deg, #4db8e8, #52c4f0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.5rem;
}

.hero-description {
    font-size: 1.2rem;
    text-align: center;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.highlight-large {
    font-size: 1.3rem;
    color: #52c4f0;
    font-weight: 700;
    text-shadow: 0 0 10px rgba(82, 196, 240, 0.5);
}

.cta-container-hero {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.cta-button-hero {
    padding: 18px 36px;
    border-radius: 12px;
    font-size: 1.2rem;
    font-weight: 700;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.cta-button-hero.primary {
    background: linear-gradient(135deg, #ff6b6b, #ff4757);
    color: white;
    animation: glow 2s ease-in-out infinite alternate;
}

.cta-button-hero.secondary {
    background: linear-gradient(135deg, #4db8e8, #3498db);
    color: white;
}

.cta-button-hero:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

@keyframes glow {
    from { box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4); }
    to { box-shadow: 0 4px 25px rgba(255, 107, 107, 0.8); }
}

section ul {
    list-style-type: none; /* デフォルトの箇条書きを削除 */
    padding-left: 0; /* 左のパディングを削除 */
}

section ul li {
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 1.5rem;
}

section ul li::before {
    content: '•';
    color: var(--primary-color);
    font-size: 1.2em;
    position: absolute;
    left: 0;
    top: 0;
}

h2 {
    color: var(--primary-color, #4db8e8) !important;
    font-size: 2rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--secondary-color, #3498db);
    padding-bottom: 0.5rem;
}

section p, section ul {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1rem;
    color: var(--text-color, #e8e8e8) !important;
}

.highlight {
    color: var(--accent-color);
    font-weight: 600;
}

.plan {
    border: 1px solid var(--primary-color);
    border-radius: 5px;
    padding: 1rem;
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background-color: #2a2a2a;
}

.plan h3 {
    color: var(--primary-color);
    margin-top: 0;
}

.testimonial {
    background-color: #2a2a2a;
    border-left: 4px solid var(--accent-color);
    padding: 1rem;
    margin-bottom: 1rem;
}

.testimonial .author {
    font-style: italic;
    text-align: right;
}

#developer-message blockquote {
    font-style: italic;
    border-left: 4px solid var(--secondary-color);
    padding-left: 1rem;
    margin-left: 0;
}

.accordion-item {
    border: 1px solid #404040;
    margin-bottom: 1rem;
    border-radius: 5px;
    overflow: hidden;
}

.accordion-header {
    background-color: var(--primary-color);
    color: white;
    cursor: pointer;
    padding: 1rem;
    width: 100%;
    text-align: left;
    border: none;
    outline: none;
    transition: 0.4s;
    font-weight: bold;
}

.accordion-header:hover {
    background-color: var(--secondary-color);
}

.accordion-content {
    padding: 0 1rem;
    background-color: #2a2a2a;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.cta-button {
    display: inline-block;
    padding: 10px 20px;
    margin: 10px 0;
    border-radius: 5px;
    text-align: center;
    transition: background-color 0.3s;
    font-size: 1em;
    line-height: 1.5;
    text-decoration: none;
    cursor: pointer;
    color: white;
}

.cta-button.campfire {
    background-color: #ff6b6b;
}

.cta-button.campfire:hover {
    background-color: #ff4757;
}

.cta-button.yieldspace {
    background-color: #3a8bbb;
}

.cta-button.yieldspace:hover {
    background-color: #2c6a8f;
}

@media (max-width: 768px) {
    .cta-button {
        display: block;
        width: 100%;
    }
}

.disabled-button {
    background-color: #e0e0e0;
    color: #666;
    cursor: not-allowed;
}

footer {
    background-color: #1a1a1a;
    padding: 30px 0;
    margin-top: 50px;
    border-top: 1px solid #404040;
}

footer p {
    margin-bottom: 15px;
    color: #e8e8e8;
}

footer ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

footer ul li {
    margin-bottom: 10px;
}

footer a {
    color: #4db8e8;
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 500;
    display: inline-block;
    padding: 5px 0;
}

footer a:hover {
    color: #52c4f0;
    text-decoration: underline;
}

@media (max-width: 768px) {
    footer {
        padding: 20px 15px;
    }

    footer a {
        padding: 8px 0;
    }
}

@media (max-width: 768px) {
    .cta-button {
        display: block;
        width: 100%;
    }
    
    .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    .logo-container {
        margin-right: 0;
        margin-bottom: 1rem;
    }
    
    header h1 {
        font-size: 2.5rem;
    }
    
    header p {
        font-size: 1rem;
    }
    
    .pricing-grid {
        flex-direction: column;
    }
    
    .plan {
        margin-bottom: 20px;
        min-height: auto; /* モバイルでは最小高さを解除 */
    }
    
    .header-content {
        flex-direction: column;
        align-items: center;
    }
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.plan {
    background: linear-gradient(145deg, #2a2a2a, #333333);
    border: 2px solid #404040;
    border-radius: 16px;
    padding: 32px 24px;
    text-align: center;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: all 0.3s ease;
    min-height: 480px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.plan:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 48px rgba(77, 184, 232, 0.4);
    border-color: var(--primary-color);
}

.plan.starter {
    border-color: #52c4f0;
}

.plan.premium {
    border: 3px solid #4db8e8;
    background: linear-gradient(145deg, #2a2a2a, #333333);
    box-shadow: 0 12px 40px rgba(77, 184, 232, 0.3);
    transform: scale(1.05);
    z-index: 2;
}

.plan-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(45deg, #52c4f0, #4db8e8);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(82, 196, 240, 0.4);
}

.plan-badge.recommended {
    background: linear-gradient(45deg, #ff6b6b, #ee5a52);
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.4);
}

.plan-badge.special {
    background: linear-gradient(45deg, #9b59b6, #8e44ad);
    box-shadow: 0 4px 12px rgba(155, 89, 182, 0.4);
}

.plan.three-month {
    border-color: #9b59b6;
}

.plan.three-month:hover {
    border-color: #8e44ad;
    box-shadow: 0 16px 48px rgba(155, 89, 182, 0.4);
}

.plan h3 {
    color: var(--primary-color);
    margin: 20px 0 12px 0;
    font-size: 1.6rem;
    font-weight: 700;
}

.price-container {
    margin-bottom: 16px;
}

.plan .price {
    font-size: 2.4rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0;
    line-height: 1;
}

.plan .price span {
    font-size: 1rem;
    font-weight: 500;
    color: #b8b8b8;
}

.save-amount {
    font-size: 0.85rem;
    color: #52c4f0;
    margin-top: 4px;
    font-weight: 500;
}

.plan-description {
    margin-bottom: 20px;
}

.plan-description p {
    color: #b8b8b8;
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.4;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin-bottom: 24px;
    flex-grow: 1;
    text-align: left;
}

.feature-list li {
    margin-bottom: 12px;
    color: #e8e8e8;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 10px;
    line-height: 1.4;
}

.feature-list .check {
    font-size: 1rem;
    flex-shrink: 0;
}

.premium-feature {
    color: #4db8e8 !important;
}

.plan ul li::before {
    content: '✓';
    color: var(--primary-color);
    position: absolute;
    left: 0;
}

.button-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-top: auto;
    gap: 8px;
}


/* プラン比較テーブル */
.pricing-comparison-container {
    background: linear-gradient(145deg, #2a2a2a, #333333);
    border-radius: 16px;
    padding: 24px;
    margin: 32px 0;
    border: 2px solid #404040;
}

.comparison-header h3 {
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 20px;
    font-size: 1.4rem;
    font-weight: 600;
}

.comparison-table {
    overflow-x: auto;
}

.comparison-table table {
    width: 100%;
    border-collapse: collapse;
    background: transparent;
}

.comparison-table th,
.comparison-table td {
    padding: 12px 16px;
    text-align: center;
    border-bottom: 1px solid #404040;
}

.comparison-table th {
    background: linear-gradient(135deg, #4db8e8, #52c4f0);
    color: white;
    font-weight: 600;
    font-size: 1rem;
}

.comparison-table td {
    color: #e8e8e8;
    font-size: 0.95rem;
}

.comparison-table th:first-child,
.comparison-table td:first-child {
    text-align: left;
    font-weight: 500;
}

/* スタータープラン期間選択ボタン */
.plan-duration-selector {
    display: flex;
    flex-direction: row;
    gap: 8px;
    margin-bottom: 20px;
}

.duration-btn {
    background: linear-gradient(145deg, #333333, #404040);
    border: 2px solid #555555;
    border-radius: 8px;
    padding: 10px 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #e8e8e8;
    flex: 1;
    text-align: center;
    font-weight: 600;
    font-size: 0.9rem;
}

.duration-btn:hover {
    border-color: #4db8e8;
    background: linear-gradient(145deg, #404040, #4a4a4a);
}

.duration-btn.active {
    border-color: #4db8e8;
    background: linear-gradient(145deg, #4db8e8, #52c4f0);
    color: white;
    box-shadow: 0 4px 12px rgba(77, 184, 232, 0.3);
}


/* プレミアムプラン内トグル */
.premium-toggle-container {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
}

.premium-billing-toggle {
    display: flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(145deg, #333333, #404040);
    padding: 12px 16px;
    border-radius: 25px;
    border: 2px solid #555555;
}

.premium-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 28px;
}

.premium-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.premium-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #555555;
    transition: .4s;
    border-radius: 28px;
}

.premium-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .premium-slider {
    background-color: #4db8e8;
}

input:checked + .premium-slider:before {
    transform: translateX(22px);
}

.premium-toggle-labels {
    display: flex;
    align-items: center;
    gap: 12px;
}

.premium-toggle-labels span {
    color: #e8e8e8;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.availability-note {
    font-size: 0.8rem;
    color: #ff6b6b;
    font-weight: 500;
    text-align: center;
    margin-top: 8px;
}

.pricing-subtitle {
    text-align: center;
    font-size: 1.1rem;
    margin-bottom: 24px;
    color: #b8b8b8;
}

@media (max-width: 768px) {
    .pricing-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .plan.premium {
        transform: none;
        margin-bottom: 20px;
    }
    
    .comparison-table {
        font-size: 0.85rem;
    }
    
    .premium-billing-toggle {
        flex-direction: column;
        gap: 8px;
        padding: 12px;
    }
    
    .premium-toggle-labels {
        justify-content: center;
    }
}

@media (max-width: 1200px) {
    .cta-button, .unavailable-note {
        font-size: 0.8em;
        padding: 8px 10px;
    }
}

.payment-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.payment-method {
    display: flex;
    align-items: flex-start;
    background-color: #2a2a2a;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
    border: 1px solid #404040;
    transition: transform 0.2s ease-in-out;
}

.payment-method:hover {
    transform: translateY(-3px);
}

.payment-method .icon {
    font-size: 24px;
    margin-right: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    background-color: #404040;
    border-radius: 50%;
    flex-shrink: 0;
}

.payment-method span:not(.icon) {
    font-size: 0.9em;
    line-height: 1.3;
}

@media (max-width: 1200px) {
    .payment-methods {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

@media (max-width: 768px) {
    .payment-methods {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
}

.contract-details {
    margin-top: 40px;
    background-color: #2a2a2a;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    border: 1px solid #404040;
}

.contract-details h3 {
    text-align: center;
    margin-bottom: 20px;
}

.contract-method {
    margin-bottom: 30px;
}

.contract-method h5 {
    margin-top: 20px;
    margin-bottom: 10px;
    color: #e8e8e8;
}

.contract-method ol {
    padding-left: 20px;
    margin-bottom: 20px;
}

.contract-method ol li {
    margin-bottom: 10px;
}

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

/* Intersection Observer最適化 */
.fade-in:not(.visible) {
    content-visibility: auto;
    contain-intrinsic-size: 200px;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.cta-button-large {
    display: block;
    width: calc(100% - 40px); /* コンテナのパディングを考慮 */
    max-width: 600px; /* 最大幅を設定 */
    margin: 20px auto; /* 中央揃え */
    padding: 15px 20px;
    border-radius: 8px;
    text-align: center;
    transition: all 0.3s ease;
    font-size: 1.2em;
    font-weight: bold;
    text-decoration: none;
    cursor: pointer;
    color: white;
    border: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.cta-button-large.campfire {
    background-color: #ff6b6b;
}

.cta-button-large.campfire:hover {
    background-color: #ff4757;
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}

.cta-button-large.yieldspace {
    background-color: #3a8bbb;
}

.cta-button-large.yieldspace:hover {
    background-color: #2c6a8f;
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}

.cta-button-large.start-now {
    background-color: #4CAF50;
}

.cta-button-large.start-now:hover {
    background-color: #45a049;
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}

@media (max-width: 768px) {
    .cta-button-large {
        font-size: 1em;
        padding: 12px 15px;
    }
}

.benefits-section {
    background: linear-gradient(135deg, #2a2a2a, #1a1a1a);
}

.section-title {
    text-align: center;
    font-size: 2.2rem;
    color: #4db8e8;
    margin-bottom: 3rem;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.benefit-card {
    background: linear-gradient(135deg, #3a3a3a, #2a2a2a);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    border: 1px solid #4db8e8;
    transition: transform 0.3s ease;
    position: relative;
    overflow: hidden;
}

.benefit-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #4db8e8, #52c4f0);
}

.benefit-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(77, 184, 232, 0.3);
}

.benefit-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.benefit-card h3 {
    color: #4db8e8;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.urgency-banner {
    background: linear-gradient(135deg, #ff6b6b, #ff4757);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    color: white;
    margin-top: 2rem;
    animation: urgentPulse 3s ease-in-out infinite;
}

.cta-button.urgent {
    background: white;
    color: #ff4757;
    font-weight: 700;
    margin-top: 1rem;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}

.cta-button.urgent:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

@keyframes urgentPulse {
    0%, 100% { box-shadow: 0 0 20px rgba(255, 107, 107, 0.5); }
    50% { box-shadow: 0 0 40px rgba(255, 107, 107, 0.8); }
}

.final-cta-section {
    background: linear-gradient(135deg, #1a1a1a, #2d2d2d);
    border: 3px solid #ff6b6b;
    position: relative;
    text-align: center;
}

.cta-headline {
    font-size: 2.5rem;
    color: #ff6b6b;
    margin-bottom: 2rem;
}

.cta-description {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 3rem;
}

.highlight-final {
    font-size: 1.4rem;
    color: #52c4f0;
    font-weight: 700;
    text-shadow: 0 0 15px rgba(82, 196, 240, 0.7);
}

.final-cta-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.cta-button-final {
    padding: 20px 40px;
    border-radius: 12px;
    font-size: 1.3rem;
    font-weight: 700;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.cta-button-final.primary {
    background: linear-gradient(135deg, #ff6b6b, #ff4757);
    color: white;
    animation: finalGlow 2s ease-in-out infinite alternate;
    min-width: 300px;
}

.cta-button-final.secondary {
    background: linear-gradient(135deg, #4db8e8, #3498db);
    color: white;
    font-size: 1rem;
    padding: 12px 24px;
}

.secondary-options {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

.trust-signal {
    font-size: 0.9rem;
    color: #4db8e8;
    margin-top: 2rem;
    font-weight: 600;
}

@keyframes finalGlow {
    from { box-shadow: 0 4px 15px rgba(255, 107, 107, 0.5); }
    to { box-shadow: 0 4px 30px rgba(255, 107, 107, 1); }
}

.social-proof-section {
    background: linear-gradient(135deg, #2a2a2a, #3a3a3a);
}

.testimonials-slider {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.testimonial-card {
    background: #1a1a1a;
    padding: 2rem;
    border-radius: 12px;
    border-left: 4px solid #4db8e8;
    position: relative;
}

.testimonial-card p {
    font-style: italic;
    margin-bottom: 1rem;
    color: #e8e8e8;
}

.testimonial-card .author {
    color: #4db8e8;
    font-weight: 600;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .hero-headline {
        font-size: 1.8rem;
    }
    
    .cta-container-hero {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-button-hero {
        width: 100%;
        max-width: 300px;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
    }
    
    .secondary-options {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 768px) {
    .pricing-grid .plan .cta-button,
    .pricing-grid .plan .unavailable-note {
      display: block;
      width: 100%;
      box-sizing: border-box;
      margin-bottom: 10px;
    }
  
    .pricing-grid .plan .cta-button {
      padding: 12px 15px;
      font-size: 16px;
    }
  
    .pricing-grid .plan .unavailable-note {
      padding: 8px 10px;
      font-size: 14px;
    }
    
    .hero-badges {
        justify-content: center;
    }
    
    .badge {
        font-size: 0.8rem;
        padding: 6px 12px;
    }
    
    /* モバイル最適化 */
    .hero-headline {
        font-size: 1.5rem;
        line-height: 1.3;
    }
    
    .hero-description {
        font-size: 1rem;
        padding: 0 1rem;
    }
    
    .benefit-card {
        padding: 1.5rem;
    }
    
    .testimonials-slider {
        grid-template-columns: 1fr;
    }
    
    .final-cta-buttons {
        padding: 0 1rem;
    }
    
    .cta-button-final.primary {
        min-width: auto;
        width: 100%;
        font-size: 1.1rem;
    }
    
    /* タッチ最適化 */
    .cta-button-hero,
    .cta-button-final,
    .cta-button {
        min-height: 44px;
        touch-action: manipulation;
    }
  }

/* 超小型デバイス対応 */
@media (max-width: 480px) {
    .container {
        padding: 10px;
    }
    
    .hero-headline {
        font-size: 1.3rem;
    }
    
    .benefit-card {
        padding: 1rem;
    }
    
    .benefit-icon {
        font-size: 2rem;
    }
}

/* 高解像度ディスプレイ対応 */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .logo {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* レスポンシブ画像 */
img {
    max-width: 100%;
    height: auto;
}

/* コンテナクエリ対応準備 */
.benefits-grid {
    container-type: inline-size;
}

/* フォント読み込み最適化 */
@font-face {
    font-family: 'Roboto';
    font-display: swap;
}

/* ===== 機能ページの横はみ出し対策（共通） ===== */
html, body {
    max-width: 100%;
    overflow-x: hidden;
}

/* 極端に長いコマンドやURLでのはみ出し防止 */
.feature-detail-section,
.feature-description,
.command-code,
.arg-description,
.notice-content {
    overflow-wrap: anywhere;
    word-break: break-word;
}

/* 説明テキストや見出し、使用例の折返しも強制 */
.command-item p,
.args-title,
.arg-name,
.usage-examples,
.usage-title,
.usage-item,
.command-name {
    overflow-wrap: anywhere;
    word-break: break-word;
}

/* コンテナ/カードのはみ出し抑止 */
.features-layout,
.features-content,
.features-sidebar,
.feature-detail-section,
.command-group,
.command-item,
.info-notice {
    max-width: 100%;
    box-sizing: border-box;
}

/* パンくずなど横並び要素の折返しを許可 */
.breadcrumb-nav {
    flex-wrap: wrap;
}

/* 機能レイアウトのレスポンシブ保証（個別ページの内包CSSより優先するため !important を付与） */
@media (max-width: 1024px) {
    .features-layout {
        flex-direction: column !important;
        gap: 20px !important;
    }
    .features-sidebar {
        flex: none !important;
        max-width: 100% !important;
        position: static !important;
        top: auto !important;
        max-height: none !important;
        overflow: visible !important;
        order: -1 !important;
    }
    .features-nav {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 10px !important;
    }
    .feature-nav-link {
        white-space: normal !important;
        padding: 8px 12px !important;
    }
}

@media (max-width: 768px) {
    .feature-detail-body {
        padding: 80px 10px 20px !important;
    }
    .feature-detail-section {
        padding: 20px !important;
    }
    .feature-title {
        font-size: 1.8rem !important;
    }
    .command-code {
        font-size: 0.95rem !important;
    }

    /* グリッド系は1列化してはみ出しを防ぐ（インラインstyleより強制） */
    .voice-grid,
    .setting-grid {
        grid-template-columns: 1fr !important;
    }
}

/* 統一フッター共通スタイル */
.unified-footer {
    background: #1a1a1a;
    color: #e8e8e8;
    padding: 40px 20px;
    margin-top: 50px;
    border-top: 1px solid #404040;
}

.unified-footer .footer-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.unified-footer p {
    color: #e8e8e8;
    margin: 10px 0;
    font-size: 14px;
    line-height: 1.6;
}

.unified-footer ul {
    list-style: none;
    padding: 0;
    margin: 20px 0 0 0;
}

.unified-footer li {
    margin: 10px 0;
}

.unified-footer a {
    color: #4db8e8;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.unified-footer a:hover {
    color: #ffffff;
    text-decoration: underline;
}