/* 簡単なスタイル：デザイン案の雰囲気を出すための最小限のCSS */
body {
    font-family: Arial, sans-serif;
    margin: 40px;
    text-align: center;
    background-color: #f4f7f6;
}
.container {
    max-width: 600px;
    margin: 0 auto;
    padding: 30px;
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
h2 {
    color: #1a73e8; /* 青系のメインカラー */
}

/* ------------------ ヘッダー用のCSS (背景画像追加) ------------------ */
.header {
    background-image: url('header_bg.png'); /* ★ここを変更：画像のパスを指定 */
    background-size: cover;      /* 背景画像を要素全体に表示 */
    background-position: center; /* 背景画像を中央に配置 */
    background-repeat: no-repeat; /* 背景画像の繰り返しをなしに */
    /* 必要であれば背景色も指定（画像が読み込めなかった時のため） */
    background-color: #1a73e8; 
    
    color: white;
    padding: 50px 0; /* ★パディングを増やして画像の見える範囲を広げる */
    margin-bottom: 30px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative; /* オーバーレイのために必要 */
}

/* 背景画像の上にオーバーレイを追加して文字を読みやすくする */
.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3); /* 半透明の黒 */
    z-index: 1; /* コンテンツの下に配置 */
}

.header-content {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative; /* オーバーレイの上に配置 */
    z-index: 2; /* オーバーレイの上に表示 */
}
.site-title {
    font-size: 1.8em;
    font-weight: bold;
    text-decoration: none;
    color: white;
}
.nav a {
    color: white;
    text-decoration: none;
    margin-left: 20px;
    font-size: 0.9em;
    opacity: 0.8;
    transition: opacity 0.3s;
}
.nav a:hover {
    opacity: 1;
}
/* ----------------------------------------------------------- */

.upload-area {
    border: 3px dashed #bbdefb; /* 薄い青の点線 */
    padding: 50px 20px;
    margin: 30px 0;
    cursor: pointer;
    transition: background-color 0.3s;
}
.upload-area:hover {
    background-color: #e3f2fd;
}
input[type="file"] {
    display: none; /* ファイル選択ボタンを隠す */
}
.custom-file-button {
    background-color: #1a73e8;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    display: inline-block;
    cursor: pointer;
}

/* アップロードボタンの基本スタイル */
#submitButton {
    padding: 15px 30px;
    background-color: #34a853; /* 活性時の色 */
    border: none;
    color: white;
    border-radius: 5px;
    font-size: 1.1em;
    cursor: pointer;
    transition: background-color 0.3s, opacity 0.3s; /* 滑らかな変化 */
}
/* ボタンが無効化されている時のスタイル */
#submitButton:disabled {
    background-color: #cccccc; /* グレーアウト */
    color: #666666;             /* 文字色も暗く */
    cursor: not-allowed;        /* カーソルを変更 */
    opacity: 0.7;               /* 透明度を下げる */
    box-shadow: none;           /* シャドウをなくす */
}