/* --- 変数定義 (GA4 Analytics Style) --- */
:root {
  /* メインカラー: 分析ツールらしい信頼感のある青 */
  --primary-blue: #1a73e8;    
  --header-bg: #1557b0;      /* ヘッダー用：少し濃いめの青 */
  
  /* アクセントカラー: 活気のあるオレンジ */
  --accent-orange: #f9ab00;   /* Google風のイエローオレンジ */
  --accent-hover: #ea8600;
  
  /* ベースカラー */
  --bg-color: #f8f9fa;        /* 全体背景 */
  --card-bg: #ffffff;         /* コンテンツ背景 */
  --text-main: #3c4043;       /* メイン文字 */
  --text-sub: #70757a;        /* 補足文字 */
  --border-color: #dadce0;    /* 境界線 */
  --white: #ffffff;
  
  /* 装飾 */
  --shadow: 0 1px 2px 0 rgba(60,64,67,.3), 0 1px 3px 1px rgba(60,64,67,.15);
  --max-width: 1100px;
}

/* --- 全体設定 --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
  background-color: var(--bg-color);
  color: var(--text-main);
  font-family: 'Open Sans', Roboto, Arial, sans-serif;
  line-height: 1.6;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* --- ヘッダー (GA4風 青系) --- */
header {
    background-color: var(--header-bg);
    color: var(--white);
    padding: 20px.75rem 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 30px;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header h1 a {
    text-decoration: none;
    color: var(--white);
    font-size: 1.25rem;
    font-weight: 500;
    letter-spacing: 0.5px;
}

nav ul {
    display: flex;
    list-style: none;
    align-items: center;
}

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

nav ul li a:hover {
    color: var(--white);
}

/* --- メインコンテンツ --- */
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;
    pointer-events: none; /* inputが上にあるのでクリック判定を無効化 */
    transition: background-color 0.2s;
}

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

/* --- フッター --- */
footer {
    border-top: 1px solid var(--border-color);
    background-color: var(--card-bg);
    text-align: center;
    padding: 24px 0;
    font-size: 0.75rem;
    color: var(--text-sub);
}

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

/* フッター全体のコンテナ */
.tool-footer {
    background-color: #f8f9fa;
    padding: 40px 0;
    margin-top: 60px;
    border-top: 1px solid #dee2e6;
    color: #6c757d;
    text-align: center; /* すべてを中央寄せにする魔法の1行 */
}

/* 上段のコンテンツ（名前とナビ） */
.footer-content {
    display: flex;
    flex-direction: column; /* 縦に並べる */
    align-items: center;    /* 中央揃え */
    gap: 20px;              /* 項目間の隙間 */
    margin-bottom: 25px;
}

/* ナビゲーションメニュー */
.tool-footer-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center; /* 横並びのメニューも中央へ */
    gap: 20px;
    flex-wrap: wrap;         /* スマホで溢れたら折り返す */
}

.tool-footer-nav a {
    color: #495057;
    text-decoration: none;
    font-weight: bold;
}

.tool-footer-nav a:hover {
    text-decoration: underline;
    color: #495057;
}

/* 免責事項のエリア */
.footer-disclaimer {
    max-width: 800px;        /* 広がりすぎないように制限 */
    margin: 0 auto;          /* 中央配置 */
    padding-top: 20px;
    border-top: 1px dashed #dee2e6;
    font-size: 0.75rem;
    line-height: 1.6;
}

.copyright strong {
    color: #333;
}