/* メインスタイル - オフホワイトベースデザイン */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    line-height: 1.65;
    color: #374151;
    background: #f8fafc;
    min-height: 100vh;
}

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

/* ヘッダー */
.header {
    text-align: center;
    margin-bottom: 20px;
    color: #2c3e50;
    padding: 20px 0;
}

.header h1 {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: #1f2937;
    letter-spacing: -0.025em;
}

.subtitle {
    font-size: 1.2rem;
    opacity: 0.7;
    font-weight: 400;
    margin-bottom: 10px;
    color: #6b7280;
}

/* メインコンテンツ */
.main {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 8px 24px rgba(0,0,0,0.06);
    padding: 48px;
    margin-bottom: 40px;
    border: 1px solid #e5e7eb;
}

/* 励ましメッセージセクション */
.try-it-section {
    text-align: center;
    margin-bottom: 40px;
    padding: 36px 24px;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    border-radius: 16px;
    border: 1px solid #cbd5e1;
}

.try-it-title {
    font-size: 2rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 12px;
    letter-spacing: -0.025em;
}

.try-it-subtitle {
    font-size: 1.125rem;
    color: #64748b;
    font-weight: 500;
    margin: 0;
}

/* セクション共通 */
.upload-section,
.content-section,
.result-section,
.error-section {
    margin-bottom: 30px;
}

/* オプションセクション */
.options-section {
    margin-top: 32px;
    padding: 32px;
    background: #f9fafb;
    border-radius: 16px;
    border: 1px solid #f3f4f6;
}

/* カスタムCSSセクションのボーダーを削除 */
.custom-css-section {
    border: none !important;
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    border-radius: 0 !important;
}

.options-section h3 {
    margin-bottom: 28px;
    color: #1f2937;
    font-size: 1.25rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: -0.025em;
}

.options-section h3 i {
    color: #6b7280;
}

/* オプションカテゴリ */
.option-category {
    margin-bottom: 25px;
}

.option-category:last-child {
    margin-bottom: 0;
}

.category-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    color: #374151;
    font-size: 1rem;
    font-weight: 600;
    padding-bottom: 12px;
    border-bottom: 2px solid #e5e7eb;
}

.category-title i {
    color: #9ca3af;
    font-size: 0.95rem;
}

.category-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    padding-top: 10px;
}

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

.option-group {
    display: flex;
    flex-direction: column;
}

.option-group label {
    font-weight: 500;
    margin-bottom: 8px;
    color: #34495e;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

.option-group label i {
    color: #95a5a6;
    font-size: 0.85rem;
    width: 12px;
    text-align: center;
}

/* ラジオボタンスタイル */
.template-radio-group {
    display: flex;
    gap: 15px;
    margin-top: 8px;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-weight: 400;
}

.radio-option input[type="radio"] {
    margin: 0;
    accent-color: #34495e;
}

.radio-label {
    font-size: 0.9rem;
    color: #34495e;
}

.radio-option:hover .radio-label {
    color: #2c3e50;
}

/* テンプレートタイプグループの調整 */
.template-type-group {
    margin-bottom: 15px;
}

/* プリセットテンプレートグループの調整 */
.preset-template-group {
    margin-bottom: 15px;
}

/* カスタムCSSグループの調整 */
.custom-css-group {
    margin-bottom: 15px;
}

/* 無効化状態のスタイル */
.css-select:disabled {
    background-color: #f8f9fa;
    color: #6c757d;
    cursor: not-allowed;
    border-color: #dee2e6;
}

.css-upload-btn:disabled {
    background: #dee2e6;
    color: #6c757d;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.css-upload-btn:disabled:hover {
    background: #dee2e6;
    transform: none;
    box-shadow: none;
}

.option-group select {
    padding: 10px 14px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: white;
    font-size: 0.9rem;
    cursor: pointer;
    color: #374151;
    transition: all 0.2s ease;
}

.option-group select:focus {
    outline: none;
    border-color: #6b7280;
    box-shadow: 0 0 0 3px rgba(107, 114, 128, 0.1);
}

/* ボタン共通スタイル */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* プライマリボタン */
.convert-btn,
.download-btn {
    padding: 14px 28px;
    background: #1f2937;
    color: white;
    min-width: 160px;
    font-weight: 600;
    border-radius: 10px;
    border: none;
    font-size: 1rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.convert-btn:hover:not(:disabled),
.download-btn:hover {
    background: #111827;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(31, 41, 55, 0.25);
}

/* セカンダリボタン */
.new-conversion-btn,
.retry-btn {
    padding: 14px 28px;
    background: #1f2937;
    color: white;
    min-width: 160px;
    font-weight: 600;
    border-radius: 10px;
    border: none;
    font-size: 1rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.new-conversion-btn:hover,
.retry-btn:hover {
    background: #111827;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(31, 41, 55, 0.25);
}

/* ファイル選択ボタン */
.file-select-btn {
    background: none;
    border: none;
    color: #34495e;
    text-decoration: underline;
    cursor: pointer;
    font-size: inherit;
    padding: 0;
}

.file-select-btn:hover {
    color: #2c3e50;
}

/* プログレスバー */
.progress-container {
    margin-top: 24px;
}

.progress-bar {
    width: 100%;
    height: 10px;
    background: #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 12px;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6 0%, #1d4ed8 100%);
    width: 0%;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, 
        rgba(255,255,255,0.2) 25%, 
        transparent 25%, 
        transparent 50%, 
        rgba(255,255,255,0.2) 50%, 
        rgba(255,255,255,0.2) 75%, 
        transparent 75%);
    background-size: 20px 20px;
    animation: progressStripes 1s linear infinite;
}

@keyframes progressStripes {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 20px 0;
    }
}

.progress-text {
    text-align: center;
    font-size: 0.9rem;
    color: #6b7280;
    font-weight: 500;
}

/* 結果セクション */
.result-content,
.error-content {
    text-align: center;
    padding: 40px 20px;
}

.success-icon,
.error-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.result-content h3,
.error-content h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #2c3e50;
}

.result-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
    flex-wrap: wrap;
}

/* フッター */
.footer {
    background: #ffffff;
    border-radius: 8px;
    padding: 60px 0 30px;
    margin-top: 80px;
    border: 1px solid #ecf0f1;
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: left;
}

.footer-section h4 {
    color: #2c3e50;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section li {
    margin-bottom: 10px;
}

.footer-section a {
    color: #7f8c8d;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.95rem;
}

.footer-section a:hover {
    color: #3498db;
}

.footer-section p {
    color: #7f8c8d;
    line-height: 1.6;
    margin-bottom: 20px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #f8f9fa;
    border-radius: 50%;
    transition: all 0.3s ease;
    color: #7f8c8d;
}

.social-links a:hover {
    background: #3498db;
    color: white;
    transform: translateY(-2px);
}

.footer-bottom {
    border-top: 1px solid #ecf0f1;
    margin-top: 40px;
    padding-top: 30px;
    text-align: center;
}

.footer-copyright p {
    color: #95a5a6;
    margin: 0;
    font-size: 0.9rem;
}

.api-info h4 {
    margin-bottom: 15px;
    color: #2c3e50;
    font-weight: 500;
}

.api-example {
    background: #f8f9fa;
    border: 1px solid #ecf0f1;
    border-radius: 4px;
    padding: 15px;
    margin: 15px 0;
    font-family: 'Monaco', 'Menlo', monospace;
    font-size: 0.85rem;
    overflow-x: auto;
    color: #2c3e50;
}

.footer-links {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.api-link {
    color: #34495e;
    text-decoration: none;
    font-weight: 500;
}

.api-link:hover {
    text-decoration: underline;
    color: #2c3e50;
}

/* プレビューヘッダー */
.preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 10px;
}

.preview-file-selector {
    display: flex;
    align-items: center;
    gap: 8px;
}

.preview-file-selector label {
    font-size: 0.9rem;
    color: #34495e;
    font-weight: 500;
}

.preview-file-selector select {
    padding: 6px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: white;
    font-size: 0.9rem;
    color: #2c3e50;
    min-width: 200px;
}

.preview-file-selector select:focus {
    outline: none;
    border-color: #95a5a6;
    box-shadow: 0 0 0 2px rgba(149, 165, 166, 0.2);
}

/* アクティブプレビューファイルのスタイル */
.file-item.active-preview {
    background: #f0f8ff;
    border: 2px solid #34495e;
    border-radius: 6px;
}

.file-item.active-preview .file-name {
    color: #2c3e50;
    font-weight: 600;
}

/* ユーザー登録促進セクション */
.registration-promo {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    padding: 40px 30px;
    margin: 40px 0;
    text-align: center;
    border: 1px solid #dee2e6;
    box-shadow: 0 4px 16px rgba(0,0,0,0.05);
}

.promo-content h3 {
    color: #2c3e50;
    font-size: 1.8rem;
    margin-bottom: 30px;
    font-weight: 500;
}

.promo-icon {
    color: #34495e;
    margin-bottom: 20px;
}

.promo-benefits {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    background: white;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    font-size: 0.95rem;
    color: #495057;
}

.benefit-item i {
    color: #34495e;
    font-size: 1.2rem;
    width: 24px;
    text-align: center;
}

.register-promo-btn {
    background: #27ae60;
    color: white;
    font-size: 1.1rem;
    padding: 15px 30px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.register-promo-btn:hover {
    background: #229954;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(39, 174, 96, 0.3);
}

.api-description {
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: 15px;
    line-height: 1.5;
}

/* ナビゲーションヘッダー */
.navigation-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(236, 240, 241, 0.8);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.navigation-header.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;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 70px;
}

.nav-brand .brand-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #2c3e50;
    font-weight: 700;
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.nav-brand .brand-link:hover {
    color: #3498db;
}

.brand-icon {
    color: #3498db;
    margin-right: 10px;
    font-size: 1.8rem;
}

.brand-text {
    font-family: 'Arial', sans-serif;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 40px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-link {
    color: #7f8c8d;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #3498db;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #3498db;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-auth {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-left: 20px;
}

.nav-btn {
    padding: 12px 24px;
    margin: 8px 4px;
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 120px;
    justify-content: center;
    white-space: nowrap;
}

.nav-btn i {
    font-size: 0.9rem;
}

.login-btn {
    background: transparent;
    color: #7f8c8d;
    border: 1px solid #bdc3c7;
}

.login-btn:hover {
    background: #ecf0f1;
    color: #2c3e50;
    border-color: #95a5a6;
}

.register-btn {
    background: #3498db;
    color: white;
    border: 1px solid #3498db;
}

.register-btn:hover {
    background: #2980b9;
    border-color: #2980b9;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

/* モバイルメニューボタン（デスクトップでは非表示） */
.nav-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    gap: 4px;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.nav-toggle:hover {
    background-color: rgba(52, 73, 94, 0.1);
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: #2c3e50;
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: block;
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
    background: #e74c3c;
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(20px);
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
    background: #e74c3c;
}

/* モバイル対応 */
@media (max-width: 768px) {
    .nav-container {
        min-height: 60px;
        padding: 10px 15px;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        background: white;
        border-bottom: 1px solid #ecf0f1;
        flex-direction: column;
        gap: 0;
        padding: 20px;
        transform: translateY(-100%);
        transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
        z-index: 999;
        opacity: 0;
        visibility: hidden;
    }

    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-links {
        flex-direction: column;
        gap: 20px;
        margin-bottom: 20px;
        padding-bottom: 20px;
        border-bottom: 1px solid #ecf0f1;
        width: 100%;
    }

    .nav-link {
        font-size: 1rem;
        padding: 10px 0;
    }

    .nav-auth {
        width: 100%;
        justify-content: center;
        margin-left: 0;
        margin-top: 10px;
        gap: 15px;
    }

    .nav-btn {
        flex: 1;
        max-width: 140px;
        padding: 10px 16px;
        font-size: 0.85rem;
        margin: 4px 6px;
    }

    .brand-text {
        font-size: 1.3rem;
    }

    .brand-icon {
        font-size: 1.5rem;
    }
    
    /* ヒーローセクションのモバイル最適化 */
    .hero-section {
        padding: 60px 15px 80px;
        margin: 0;
    }
    
    .hero-content {
        max-width: 100%;
        padding: 0 5px;
    }
    
    .hero-title {
        font-size: 2.2rem;
        line-height: 1.2;
        margin-bottom: 15px;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 25px;
    }
    
    .hero-features {
        flex-direction: column;
        gap: 15px;
        margin: 30px 0;
    }
    
    .hero-feature {
        font-size: 0.95rem;
        padding: 6px 12px;
    }
    
    .hero-cta {
        flex-direction: column;
        gap: 15px;
        margin: 35px 0;
    }
    
    .cta-button {
        width: 100%;
        max-width: 280px;
        margin: 0 auto;
        padding: 16px 24px;
        font-size: 1rem;
    }
    
    .auth-section {
        margin-top: 30px;
        padding-top: 30px;
    }
}

/* ランディングページ新セクション */

/* ヒーローセクション */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
    padding: 80px 20px;
    margin-bottom: 0;
}

/* 機能ページ等で使用する詳細ヒーローセクション */
.hero-section.page-hero,
.hero-section.features-hero,
.hero-section.detail-hero {
    padding: 80px 0;
    text-align: center;
}

.hero-section.page-hero .hero-content,
.hero-section.features-hero .hero-content,
.hero-section.detail-hero .hero-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero-section.page-hero .hero-title,
.hero-section.features-hero .hero-title,
.hero-section.detail-hero .hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.hero-section.page-hero .hero-title i,
.hero-section.features-hero .hero-title i,
.hero-section.detail-hero .hero-title i {
    font-size: 2rem;
}

.hero-section.page-hero .hero-subtitle,
.hero-section.features-hero .hero-subtitle,
.hero-section.detail-hero .hero-subtitle {
    font-size: 1.2rem;
    font-weight: 400;
    line-height: 1.6;
    margin-bottom: 0;
    opacity: 0.9;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 30px;
    opacity: 0.9;
    font-weight: 300;
}

.hero-features {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 40px 0;
    flex-wrap: wrap;
}

.hero-feature {
    font-size: 1rem;
    background: rgba(255,255,255,0.2);
    padding: 8px 16px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

.hero-cta {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin: 40px 0;
    flex-wrap: wrap;
}

.cta-button {
    padding: 15px 30px;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 180px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.cta-button.primary {
    background: #27ae60;
    color: white;
    box-shadow: 0 4px 15px rgba(39, 174, 96, 0.3);
}

.cta-button.primary:hover {
    background: #229954;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(39, 174, 96, 0.4);
}

.cta-button.secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.cta-button.secondary:hover {
    background: white;
    color: #667eea;
}

.auth-section {
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid rgba(255,255,255,0.2);
}

/* セクション共通スタイル */
.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 50px;
    color: #2c3e50;
}

/* 機能セクション */
.features-section {
    padding: 80px 20px;
    background: #ffffff;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-item {
    text-align: center;
    padding: 30px;
    background: #fafafa;
    border-radius: 12px;
    border: 1px solid #ecf0f1;
    transition: all 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    display: block;
}

.feature-item h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: #2c3e50;
}

.feature-item p {
    color: #7f8c8d;
    line-height: 1.6;
}

/* 使用方法セクション */
.how-it-works-section {
    padding: 80px 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.step-item {
    text-align: center;
    position: relative;
}

.step-number {
    width: 60px;
    height: 60px;
    background: #34495e;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0 auto 20px;
}

.step-content h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: #2c3e50;
}

.step-content p {
    color: #7f8c8d;
    line-height: 1.6;
}

.step-icon {
    font-size: 2rem;
    margin-top: 20px;
    opacity: 0.6;
}

/* 対象ユーザーセクション */
.target-users-section {
    padding: 80px 20px;
    background: #ffffff;
}

.users-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.user-item {
    text-align: center;
    padding: 30px;
    border: 1px solid #ecf0f1;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.user-item:hover {
    border-color: #34495e;
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(52, 73, 94, 0.1);
}

.user-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    display: block;
}

.user-item h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: #2c3e50;
}

.user-item p {
    color: #7f8c8d;
    line-height: 1.6;
}

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

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    max-width: 800px;
    margin: 0 auto;
}

.pricing-plan {
    background: white;
    border-radius: 16px;
    padding: 40px;
    text-align: center;
    border: 2px solid #ecf0f1;
    transition: all 0.3s ease;
    position: relative;
}

.pricing-plan.featured {
    border-color: #34495e;
    transform: scale(1.05);
    box-shadow: 0 10px 40px rgba(52, 73, 94, 0.2);
}

.plan-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: #34495e;
    color: white;
    padding: 8px 24px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.plan-header h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #2c3e50;
}

.plan-price {
    margin-bottom: 30px;
}

.price {
    font-size: 3rem;
    font-weight: 700;
    color: #2c3e50;
}

.period {
    font-size: 1rem;
    color: #7f8c8d;
    margin-left: 5px;
}

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

.plan-features li {
    padding: 8px 0;
    text-align: left;
    color: #2c3e50;
    font-size: 0.95rem;
}

.plan-cta {
    margin-top: 30px;
}

/* よくある質問セクション */
.faq-section {
    padding: 80px 20px;
    background: #ffffff;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid #ecf0f1;
    margin-bottom: 20px;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.faq-question:hover {
    color: #34495e;
}

.faq-question h3 {
    font-size: 1.1rem;
    margin: 0;
    color: #2c3e50;
    font-weight: 600;
}

.faq-toggle {
    font-size: 1.5rem;
    font-weight: 300;
    color: #95a5a6;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
}

.faq-answer {
    display: none;
    padding: 0 0 20px;
    color: #7f8c8d;
    line-height: 1.6;
}

.faq-item.active .faq-answer {
    display: block;
}

/* レスポンシブデザイン */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .header h1 {
        font-size: 2rem;
    }
    
    .subtitle {
        font-size: 1rem;
        margin-bottom: 10px;
    }
    
    .main {
        padding: 30px 20px;
    }
    
    .options-grid {
        grid-template-columns: 1fr;
    }
    
    .category-content {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .category-title {
        font-size: 0.95rem;
        margin-bottom: 12px;
        padding-bottom: 6px;
    }
    
    .option-category {
        margin-bottom: 20px;
    }
    
    .result-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .api-example {
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .header h1 {
        font-size: 1.8rem;
    }
    
    .main {
        padding: 20px 15px;
    }
    
    .options-section {
        padding: 15px;
    }
    
    .options-section h3 {
        font-size: 1.1rem;
        margin-bottom: 20px;
    }
    
    .category-title {
        font-size: 0.9rem;
    }
    
    .option-group label {
        font-size: 0.85rem;
        margin-bottom: 6px;
    }
    
    .option-group select {
        padding: 6px 10px;
        font-size: 0.85rem;
    }
}

/* カスタムCSS入力グループ */
.css-input-group {
    display: flex;
    gap: 8px;
    align-items: center;
    width: 100%;
}

.css-select {
    flex: 1;
    min-width: 0;
}

.css-upload-btn {
    background: #95a5a6;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 8px 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    flex-shrink: 0;
}

.css-upload-btn:hover {
    background: #7f8c8d;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(149, 165, 166, 0.2);
}

.css-upload-btn:active {
    transform: translateY(0);
    box-shadow: 0 1px 4px rgba(149, 165, 166, 0.2);
}

.css-upload-btn i {
    font-size: 1rem;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .css-input-group {
        gap: 6px;
    }
    
    .css-upload-btn {
        padding: 6px 10px;
        min-width: 32px;
        height: 32px;
    }
    
    .css-upload-btn i {
        font-size: 0.9rem;
    }
}

/* 競合比較セクション */
.competitive-advantage-section {
    background: white;
    padding: 80px 20px;
}

.comparison-table {
    max-width: 900px;
    margin: 0 auto 60px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.comparison-header {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-weight: 600;
    padding: 20px;
}

.comparison-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    padding: 20px;
    border-bottom: 1px solid #eee;
    align-items: center;
}

.comparison-row:last-child {
    border-bottom: none;
}

.comparison-row:nth-child(even) {
    background: #f8f9fa;
}

.feature-col {
    font-weight: 600;
    color: #34495e;
    padding-right: 20px;
}

.our-service-col.advantage {
    color: #27ae60;
    font-weight: 600;
}

.our-service-col.advantage i {
    margin-right: 8px;
    color: #27ae60;
}

.competitor-col {
    color: #7f8c8d;
}

.competitor-col i {
    margin-right: 8px;
    color: #e74c3c;
}

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

.advantage-item {
    text-align: center;
    padding: 40px 20px;
    background: #fafafa;
    border-radius: 12px;
    border: 1px solid #ecf0f1;
    transition: transform 0.3s ease;
}

.advantage-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

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

.advantage-item h3 {
    color: #34495e;
    margin-bottom: 15px;
    font-size: 1.3rem;
    font-weight: 600;
}

.advantage-item p {
    color: #666;
    line-height: 1.6;
}

/* 信頼・資格情報セクション */
.trust-section {
    background: #f8f9fa;
    padding: 80px 20px;
}

.trust-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
    text-align: center;
}

.stat-item {
    background: white;
    padding: 40px 20px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #3498db;
    margin-bottom: 10px;
}

.stat-label {
    color: #666;
    font-size: 1rem;
    font-weight: 500;
}

.trust-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.trust-item {
    display: flex;
    align-items: flex-start;
    padding: 30px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.trust-item:hover {
    transform: translateY(-5px);
}

.trust-icon {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-right: 20px;
    flex-shrink: 0;
}

.trust-content h3 {
    color: #34495e;
    margin-bottom: 10px;
    font-size: 1.2rem;
    font-weight: 600;
}

.trust-content p {
    color: #666;
    line-height: 1.6;
    margin: 0;
}

.compliance-logos {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 40px;
    align-items: center;
}

.compliance-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    min-width: 120px;
}

.compliance-item:hover {
    transform: translateY(-3px);
}

.compliance-logo {
    font-size: 2rem;
    margin-bottom: 10px;
}

.compliance-item span {
    font-size: 0.9rem;
    color: #666;
    font-weight: 500;
}

/* フッター法的リンクのスタイル */
.footer-legal {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid #ecf0f1;
}

.footer-legal-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 25px;
}

.footer-legal-links a {
    color: #7f8c8d;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    font-size: 0.95rem;
}

.footer-legal-links a:hover {
    color: #3498db;
}

.footer-copyright {
    text-align: center;
    color: #95a5a6;
    font-size: 0.9rem;
}

.footer-copyright p {
    margin: 5px 0;
}

/* レスポンシブデザイン - 新セクション対応 */
@media (max-width: 768px) {
    .comparison-header,
    .comparison-row {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .comparison-header {
        text-align: center;
        padding: 15px;
    }
    
    .comparison-row {
        padding: 15px;
        text-align: center;
    }
    
    .feature-col {
        padding-right: 0;
        padding-bottom: 10px;
        border-bottom: 1px solid #ddd;
        margin-bottom: 10px;
    }
    
    .advantages-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .trust-stats {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 20px;
    }
    
    .trust-features {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .trust-item {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }
    
    .trust-icon {
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .compliance-logos {
        gap: 20px;
    }
    
    .footer-legal-links {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    /* フッターモバイル対応 */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    
    .footer-section {
        padding-bottom: 20px;
        border-bottom: 1px solid #ecf0f1;
    }
    
    .footer-section:last-child {
        border-bottom: none;
    }
    
    .social-links {
        justify-content: center;
    }
}

/* 小さなモバイルデバイス用の追加最適化 */
@media (max-width: 480px) {
    .hero-title {
        font-size: 1.8rem;
        line-height: 1.1;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-section {
        padding: 50px 10px 70px;
    }
    
    .hero-feature {
        font-size: 0.9rem;
        padding: 5px 10px;
    }
    
    .cta-button {
        padding: 14px 20px;
        font-size: 0.95rem;
        max-width: 260px;
    }
}
