div.flash_msg_area{
    text-align: center;
}

/* --- メインコンテンツ --- */
main {
    padding: 40px 0;
    min-height: 80vh;
}

/* --- インデックス/アップロードエリア --- */
.index-container {
    max-width: 800px;
    margin: 0 auto;
}

.hero {
    text-align: center;
    margin-bottom: 32px;
}

.hero h2 {
    font-size: 2rem;
    color: var(--text-main);
    font-weight: 400;
    margin-bottom: 8px;
}

.hero p {
    font-size: 1rem;
    color: var(--text-sub);
}

.upload-area {
    background: var(--card-bg);
    padding: 40px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    box-shadow: 0 1px 2px 0 rgba(60,64,67,.3);
}

/* ファイルドロップゾーン (分析ツールらしい清潔感) */
.file-drop-zone {
    position: relative;
    border: 2px dashed var(--border-color);
    background-color: #fbfbfc;
    padding: 60px 40px; /* 上下の余白を少し広げて分析ツール感を出す */
    border-radius: 8px;
    transition: all 0.2s;
    
    /* 中央揃えのコア設定 */
    display: flex;
    flex-direction: column;
    align-items: center;     /* 左右の中央 */
    justify-content: center;  /* 上下の中央 */
    text-align: center;
    min-height: 250px;
}

.file-drop-zone:hover {
    border-color: var(--primary-blue);
    background-color: #f1f7fe;
}

#fileInput {
    position: absolute;
    width: 100%; height: 100%;
    top: 0; left: 0;
    opacity: 0;
    cursor: pointer;
}

.upload-icon {
    font-size: 3rem;
    margin-bottom: 16px;
    color: var(--primary-blue); /* アイコンを青系にすると分析ツールらしくなります */
    opacity: 0.7;
    display: block; /* 確実に1行占有 */
}

#instructionText {
    font-size: 0.95rem;
    color: var(--text-main);
    text-align: center;
}

/* ボタン (オレンジ系) */
.submit-wrapper {
    margin-top: 32px;
    text-align: center;
}

.btn-submit {
    background-color: var(--accent-orange);
    color: #000; /* オレンジ背景には黒文字がGA風で見やすい */
    border: none;
    padding: 12px 48px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 4px; /* 丸すぎない角丸 */
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
    transition: background-color 0.2s, box-shadow 0.2s;
}

.btn-submit:hover {
    background-color: var(--accent-hover);
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.btn-primary-outline {
    display: inline-block;
    border: 1px solid var(--primary-blue);
    color: var(--primary-blue);
    background-color: transparent;
    padding: 8px 24px;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 500;
    margin-top: 12px;
    transition: background-color 0.2s;
}

.file-drop-zone:hover .btn-primary-outline {
    background-color: rgba(26, 115, 232, 0.04);
}



#link_jra_van{
    margin-top: 20px;
    text-align: center;
}

/* --- DAT生成エリアのスタイル --- */
.dat-generator {
    max-width: 600px;
    margin: 24px auto 0;
    padding: 15px;
    background: rgba(26, 115, 232, 0.05); /* 薄い青の背景 */
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.input-group {
    display: flex;
    gap: 8px;
}

.input-field {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 0.9rem;
    outline: none;
}

.input-field:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 2px rgba(26, 115, 232, 0.2);
}

.btn-generate {
    background-color: var(--primary-blue);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    white-space: nowrap;
    transition: background-color 0.2s;
}

.btn-generate:hover {
    background-color: var(--header-bg);
}

.dat-result-area {
    margin-top: 12px;
    font-size: 0.85rem;
    min-height: 40px;
}

/* 生成されたダウンロードボタンの装飾 */
.download-link-btn {
    display: inline-block;
    margin-top: 5px;
    padding: 8px 16px;
    background-color: #fff;
    border: 2px solid var(--accent-orange);
    color: var(--text-main);
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    transition: all 0.2s;
}

.download-link-btn:hover {
    background-color: var(--accent-orange);
    color: #000;
}

.download-instruction {
    color: var(--text-sub);
    margin-bottom: 4px;
    display: block;
}

/* ドラッグ中などのエフェクトをCSSで補強 */
.file-drop-zone {
    /* ... 既存のスタイル ... */
    transition: border-color 0.2s, background-color 0.2s;
}

/* ファイル名を表示する際のバッジスタイル */
.file-badge {
    background: rgba(26, 115, 232, 0.1);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--primary-blue);
    display: inline-block;
    margin-bottom: 10px;
}

.info-section ul {
    list-style-type: none;
    padding-left: 0;
}

.info-section li {
    margin-bottom: 8px;
}

.btn-submit:disabled {
    background-color: #ccc;
    cursor: not-allowed;
    opacity: 0.7;
}