/* NC Connect お役立ち資料集ダウンロードページ カスタムスタイル */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;700&display=swap');

/* ページ全体のスタイル */
.download-page {
    font-family: "Noto Sans JP", sans-serif;
    background-color: #ffffff;
}

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

/* メインセクション */
.download-main-section {
    padding: 60px 0;
    background-color: #ffffff;
}

.download-content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    align-items: start;
}

/* 左カラム: 資料紹介 */
.download-info-column {
    padding-right: 20px;
}

.download-title {
    font-family: "Noto Sans JP", sans-serif;
    font-size: 2.5rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 40px;
    line-height: 1.3;
}

/* 資料プレビュー */
.document-previews {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 40px;
}

.document-preview {
    background-color: #f8f9fa;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* 特集資料バナー画像 */
.featured-document {
    background: none;
    border: none;
    box-shadow: none;
    padding: 0;
    border-radius: 0;
    overflow: visible;
}

.document-banner-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 0;
    max-height: 300px;
    object-fit: cover;
    border: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.document-image {
    aspect-ratio: 3/4;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
    padding: 15px;
}

.document-placeholder h3 {
    font-size: 0.9rem;
    font-weight: bold;
    margin-bottom: 10px;
    line-height: 1.3;
}

.document-placeholder p {
    font-size: 0.8rem;
    margin-bottom: 8px;
    opacity: 0.9;
}

.company-logo {
    font-size: 0.7rem;
    font-weight: bold;
    background-color: rgba(255,255,255,0.2);
    padding: 4px 8px;
    border-radius: 4px;
    display: inline-block;
}

/* この資料で分かること */
.document-benefits {
    margin-bottom: 40px;
    background-color: #f8f9fa;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border: 1px solid #e9ecef;
}

.benefits-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 20px;
}

.benefits-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.benefits-list li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 15px;
    line-height: 1.6;
    color: #555;
    font-size: 0.95rem;
}

.benefits-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #007cba;
    font-weight: bold;
    font-size: 1.1rem;
    top: 2px;
}

/* 詳細説明 */
.document-description {
    margin-bottom: 40px;
}

.document-description p {
    line-height: 1.8;
    color: #666;
    margin-bottom: 15px;
}

/* こんな方に */
.target-audience {
    margin-bottom: 40px;
    background-color: #f8f9fa;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border: 1px solid #e9ecef;
}

.audience-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 20px;
}

.audience-list {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
}

.audience-list li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 15px;
    line-height: 1.6;
    color: #555;
    font-size: 0.95rem;
}

.audience-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #007cba;
    font-weight: bold;
    font-size: 1.2rem;
    top: 2px;
}

.usage-note-section {
    margin-top: 20px;
    margin-bottom: 40px;
}

.usage-note {
    font-size: 0.9rem;
    color: #888;
    font-style: italic;
    text-align: center;
    margin: 0;
}

/* 右カラム: ダウンロードフォーム */
.download-form-column {
    position: relative;
}

.download-form-container {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    position: sticky;
    top: 20px;
    max-width: 450px;
    margin-left: auto;
}

.form-title {
    font-size: 1.2rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
    text-align: center;
}

.form-description {
    text-align: center;
    color: #666;
    margin-bottom: 30px;
    font-size: 0.85rem;
}

/* フォームメッセージ */
.form-message {
    padding: 15px 20px;
    margin: 20px 0;
    border-radius: 8px;
    font-weight: bold;
    display: flex;
    align-items: center; /* 縦方向の中央揃え */
}

.success-message {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.error-message {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.error-message ul {
    margin: 0;
    padding-left: 20px;
}

.error-message li {
    margin-bottom: 5px;
}

/* フォームのスタイル */
.download-form {
    margin-top: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #333;
    font-size: 0.95rem;
}

.required {
    color: #e74c3c;
    font-size: 0.8rem;
    margin-left: 5px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    transition: border-color 0.3s ease;
    background-color: #ffffff;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 0 3px rgba(0, 124, 186, 0.1);
}

.form-group select {
    cursor: pointer;
}

.checkbox-group {
    margin: 25px 0;
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 0.95rem;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    margin-right: 10px;
    transform: scale(1.2);
}

.download-button {
    background-color: #007cba;
    color: white;
    padding: 18px 40px;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
    width: 100%;
    text-align: center;
}

.download-button:hover {
    background-color: #005a8b;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 124, 186, 0.3);
}

/* Thanks表示のタイトル下余白を拡大 */
.thanks-message .form-title {
    margin-bottom: 24px;
}

/* フローティング要素 - 完全に非表示 */
.floating-elements,
.floating-elements *,
.floating-icon,
.briefcase-icon,
.globe-icon {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: -9999 !important;
    flex-direction: column;
    gap: 15px;
}

.floating-icon {
    display: none !important; /* 完全に非表示 */
    width: 50px;
    height: 50px;
    background-color: #007cba;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    transition: transform 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 124, 186, 0.3);
}

.floating-icon:hover {
    transform: scale(1.1);
}

/* レスポンシブ対応 */
@media (max-width: 1024px) {
    .download-content-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .download-info-column {
        padding-right: 0;
    }
    
    .download-form-container {
        position: static;
        max-width: 100%;
        margin-left: 0;
    }
    
    .floating-elements {
        display: none;
    }
}

@media (max-width: 768px) {
    .download-main-section {
        padding: 40px 0;
    }
    
    .download-title {
        font-size: 2rem;
    }
    
    .document-previews {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .document-banner-image {
        max-height: 250px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .download-form-container {
        padding: 30px 20px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .download-form-container {
        padding: 20px 15px;
    }
    
    .download-title {
        font-size: 1.8rem;
    }
}
