/* ECCast サービス紹介ページ CSS */

/* リセットとベーススタイル */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #ffffff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ヘッダー */
.header {
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    font-size: 2rem;
    font-weight: bold;
    color: #ff6b35;
    text-decoration: none;
}

.nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    color: #6b7280;
    text-decoration: none;
    transition: color 0.3s;
}

.nav-link:hover {
    color: #ff6b35;
}

/* ボタン */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 500;
    text-align: center;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #e55a2b 0%, #d67e1a 100%);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.95);
    color: #ff6b35;
    border: 2px solid #ff6b35;
    backdrop-filter: blur(4px);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 107, 53, 0.3);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

/* ヒーローセクション */
.hero {
    position: relative;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 8rem 0 4rem;
    text-align: center;
    overflow: hidden;
}

.hero::before,
.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    transition: opacity 1s ease-in-out;
}

.hero::before {
    background-image: var(--current-bg, url('img/hero01.jpg'));
    opacity: 0.7;
    z-index: 1;
}

.hero .hero-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(120, 120, 120, 0.4) 0%, rgba(20, 20, 20, 0.4) 100%);
    z-index: 3;
}

.hero .hero-bg-next {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    z-index: 2;
    transition: opacity 1s ease-in-out;
}

.hero .container {
    position: relative;
    z-index: 4;
}

.hero-content {
    margin-bottom: 3rem;
}

.hero-title {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-description {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
}

.hero-demo {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.demo-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    backdrop-filter: blur(10px);
}

.demo-icon {
    font-size: 2rem;
}

.demo-arrow {
    font-size: 1.5rem;
    opacity: 0.7;
}


/* セクション共通 */
.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: #1f2937;
}

/* 機能セクション */
.features {
    padding: 5rem 0;
    background-color: #f9fafb;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #1f2937;
}

.feature-description {
    color: #6b7280;
    line-height: 1.6;
}

/* 使い方セクション */
.how-it-works {
    padding: 5rem 0;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

.steps {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: center;
}

.step-card {
    background: white;
    padding: 2.5rem;
    border-radius: 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    width: 100%;
    max-width: 800px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 2rem;
    align-items: center;
}

/* デスクトップ用step-header（番号とアイコンを縦並び） */
.step-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.step-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.step-icon {
    font-size: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 4rem;
    height: 4rem;
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    border-radius: 50%;
    color: white;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}

.step-number {
    width: 2rem;
    height: 2rem;
    background: linear-gradient(135deg, #4ecdc4 0%, #44a08d 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: bold;
    flex-shrink: 0;
}

.step-content {
    flex: 1;
    text-align: left;
}

.step-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #1f2937;
    font-weight: bold;
}

.step-description {
    color: #6b7280;
    line-height: 1.6;
    font-size: 1rem;
}

.step-visual {
    flex-shrink: 0;
    width: 160px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}


/* ステップビジュアル要素 */
.url-input-demo {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
}

.input-box {
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 0.5rem;
    padding: 0.5rem;
    font-size: 0.8rem;
    color: #64748b;
    text-align: center;
}

.submit-btn {
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    color: white;
    border-radius: 0.5rem;
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
    text-align: center;
    font-weight: bold;
}

.analysis-demo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.loading-spinner {
    width: 30px;
    height: 30px;
    border: 3px solid #e2e8f0;
    border-top: 3px solid #ff6b35;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.analysis-text {
    font-size: 0.8rem;
    color: #64748b;
    font-weight: bold;
}

.script-demo {
    width: 100%;
}

.script-lines {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.script-line {
    background: #f8fafc;
    border-left: 3px solid #4ecdc4;
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
    color: #64748b;
    border-radius: 0.3rem;
}

.audio-demo {
    width: 100%;
}

.audio-player {
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 0.5rem;
    padding: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.play-btn {
    font-size: 1.2rem;
    color: #ff6b35;
}

.audio-wave {
    flex: 1;
    height: 20px;
    background: linear-gradient(90deg, #ff6b35 0%, #4ecdc4 100%);
    border-radius: 10px;
    opacity: 0.7;
}

/* 料金セクション */
.pricing {
    padding: 5rem 0;
    background-color: #f9fafb;
}

.pricing-description {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 1.1rem;
    color: #6b7280;
}

/* 料金プラン左右レイアウト */
.pricing-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
    margin-bottom: 2rem;
}

/* 左側: メインプラン */
.main-plan-section {
    display: flex;
    justify-content: center;
}

.pricing-card {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: relative;
    width: 100%;
    max-width: 450px;
}

.pricing-card.featured {
    border: 3px solid #ff6b35;
}

.pricing-card.large {
    padding: 3rem;
}

.plan-badge {
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 1rem;
    font-size: 0.9rem;
    position: absolute;
    top: -0.5rem;
    left: 50%;
    transform: translateX(-50%);
}

.pricing-plan {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: #1f2937;
}

.pricing-price {
    margin-bottom: 1.5rem;
}

.price {
    font-size: 3rem;
    font-weight: bold;
    color: #ff6b35;
}

.period {
    color: #6b7280;
    font-size: 1.1rem;
}

.credit-info {
    background: #f3f4f6;
    padding: 1.5rem;
    border-radius: 0.5rem;
    margin-bottom: 2rem;
}

.credit-amount {
    font-size: 1.8rem;
    font-weight: bold;
    color: #ff6b35;
    margin-bottom: 0.5rem;
}

.credit-description {
    color: #6b7280;
    font-size: 0.9rem;
}

.pricing-features {
    list-style: none;
    margin-bottom: 2rem;
    text-align: left;
}

.pricing-features li {
    padding: 0.5rem 0;
    color: #6b7280;
    position: relative;
    padding-left: 1.5rem;
}

.pricing-features li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #4ecdc4;
    font-weight: bold;
}

/* 右側: 追加クレジットセクション */
.additional-credits-section {
    text-align: left;
}

.additional-title {
    font-size: 1.8rem;
    color: #1f2937;
    margin-bottom: 1rem;
}

.additional-description {
    color: #6b7280;
    margin-bottom: 2rem;
    font-size: 1rem;
    line-height: 1.6;
}

.credit-plans-vertical {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.credit-card {
    background: white;
    padding: 1.5rem;
    border-radius: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: relative;
    transition: transform 0.3s;
}

.credit-card:hover {
    transform: translateY(-3px);
}

.credit-card.popular {
    border: 2px solid #4ecdc4;
}

.credit-card-content {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 1.5rem;
    align-items: center;
}

.credit-info-left {
    text-align: left;
}

.credit-pricing {
    text-align: center;
    min-width: 100px;
}

.credit-action {
    text-align: right;
}

.credit-badge {
    background: linear-gradient(135deg, #4ecdc4 0%, #44a08d 100%);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 1rem;
    font-size: 0.8rem;
    position: absolute;
    top: -0.5rem;
    right: 1rem;
}

.credit-info-left .credit-amount {
    font-size: 1.3rem;
    font-weight: bold;
    color: #1f2937;
    margin-bottom: 0.3rem;
}

.credit-info-left .credit-per-unit {
    color: #6b7280;
    font-size: 0.85rem;
    margin-bottom: 0.3rem;
}

.credit-info-left .credit-saving {
    color: #4ecdc4;
    font-weight: bold;
    font-size: 0.85rem;
    background: #f0fdfa;
    padding: 0.2rem 0.5rem;
    border-radius: 0.3rem;
    display: inline-block;
}

.credit-pricing .credit-price {
    font-size: 1.6rem;
    font-weight: bold;
    color: #ff6b35;
    line-height: 1;
}

.btn-compact {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
    white-space: nowrap;
}

/* Pricing Contact Section */
.pricing-contact {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 3rem 0;
}

.pricing-contact p {
    font-size: 1.1rem;
    color: #6b7280;
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.pricing-contact .btn {
    margin-top: 1rem;
}

/* CTAセクション */
.cta {
    padding: 5rem 0;
    background: linear-gradient(135deg, #ff6b35 0%, #4ecdc4 100%);
    color: white;
    text-align: center;
}

.cta-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-description {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* フッター */
.footer {
    background-color: #f3f4f6;
    color: #374151;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-title {
    font-size: 1.5rem;
    color: #ff6b35;
    margin-bottom: 1rem;
}

.footer-subtitle {
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.footer-description {
    color: #6b7280;
    line-height: 1.6;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: #6b7280;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #ff6b35;
}

.footer-bottom {
    border-top: 1px solid #d1d5db;
    padding-top: 1rem;
    text-align: center;
    color: #6b7280;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.powered-by {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.techfirm-logo {
    height: 20px;
    width: auto;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.techfirm-logo:hover {
    opacity: 1;
}

@media (max-width: 768px) {
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }
}

/* モバイルメニュートグル */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #333;
    transition: all 0.3s;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* レスポンシブデザイン */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }
    
    /* 特徴セクションを2カラムに */
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .feature-card {
        padding: 1.2rem;
    }
    
    .feature-icon {
        font-size: 2rem;
        margin-bottom: 0.5rem;
    }
    
    .feature-title {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
    }
    
    .feature-description {
        font-size: 0.85rem;
        line-height: 1.4;
    }
    
    .nav {
        position: fixed;
        top: 70px;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: calc(100vh - 70px);
        background-color: white;
        flex-direction: column;
        gap: 0;
        padding: 2rem 0;
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease;
        overflow-y: auto;
    }
    
    .nav.active {
        right: 0;
    }
    
    .nav-link {
        padding: 1rem 2rem;
        border-bottom: 1px solid #e5e7eb;
        width: 100%;
        text-align: left;
    }
    
    .nav .btn {
        margin: 1rem 2rem;
        width: calc(100% - 4rem);
    }
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-demo {
        flex-direction: column;
    }
    
    .demo-arrow {
        transform: rotate(90deg);
    }
    
    .step-card {
        display: grid;
        grid-template-columns: auto 1fr;
        gap: 1rem;
        padding: 1.2rem;
        position: relative;
        overflow: hidden;
        max-width: 100%;
    }
    
    /* SP用ステップヘッダー（番号とアイコンを縦並び） */
    .step-header {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
        width: auto;
    }
    
    .step-number {
        width: 1.8rem;
        height: 1.8rem;
        font-size: 0.9rem;
    }
    
    .step-icon {
        width: 2.5rem;
        height: 2.5rem;
        font-size: 1.5rem;
    }
    
    .step-content {
        text-align: left;
        z-index: 2;
        position: relative;
    }
    
    .step-title {
        font-size: 1.1rem;
        margin-bottom: 0.3rem;
    }
    
    .step-description {
        font-size: 0.85rem;
        line-height: 1.4;
    }
    
    /* step-visualを背景的な表示に */
    .step-visual {
        position: absolute;
        right: 10px;
        top: 50%;
        transform: translateY(-50%);
        opacity: 0.15;
        width: 200px;
        height: auto;
        z-index: 1;
    }
    
    /* ビジュアル要素の調整 */
    .url-input-demo,
    .script-demo,
    .audio-demo {
        width: 100%;
    }
    
    .input-box,
    .submit-btn {
        font-size: 0.75rem;
        padding: 0.4rem;
    }
    
    .script-line {
        font-size: 0.7rem;
        padding: 0.3rem 0.5rem;
        margin-bottom: 0.2rem;
    }
    
    .audio-player {
        padding: 0.5rem;
    }
    
    .loading-spinner {
        width: 25px;
        height: 25px;
    }
    
    .analysis-text {
        font-size: 0.75rem;
    }
    
    
    .section-title {
        font-size: 2rem;
    }
    
    .pricing-layout {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .additional-credits-section {
        text-align: center;
    }
    
    .pricing-card.featured {
        transform: none;
    }
    
    .credit-card.popular {
        transform: none;
    }
    
    .credit-card-content {
        grid-template-columns: 1fr;
        gap: 1rem;
        text-align: center;
    }
    
    .credit-info-left,
    .credit-pricing,
    .credit-action {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero {
        padding: 6rem 0 3rem;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    /* 特徴セクションを1カラムに戻す */
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .feature-card {
        padding: 1.5rem;
    }
    
    .pricing-card {
        padding: 1.5rem;
    }
    
    .step-card {
        padding: 1rem;
    }
    
    .step-visual {
        width: 80px;
        right: 5px;
    }
}