body {
    /* 全体の基本フォント設定 */
    font-family: 'ＭＳ ゴシック', Georgia, Helvetica, Times, 'Times New Roman', serif;
}

form {
    /* フォーム全体の装飾（枠・影・背景） */
    padding: 20px;
    border: 1px solid #cccccc;
    border-radius: 10px;
    -moz-border-radius: 10px;
    -webkit-box-shadow: 0 0 10px #ccc;
    -moz-box-shadow: 0 0 10px #ccc;
    box-shadow: 0 0 10px #ccc;
    background-image: -moz-linear-gradient(top, #ffffff, #f2f2f2);
    background-image: -webkit-gradient(linear, left top, left bottom, from(#ffffff), to(#f2f2f2));
}

h1 {
    /* メインタイトル */
    text-align: center;
    color: black;
    letter-spacing: 1.5px;
    word-spacing: 1px;
    position: relative;
    top: -10px;
    font-family: 'ＭＳ ゴシック', Georgia, Helvetica, Times, 'Times New Roman', serif;
}

h4 {
    /* サブタイトル */
    text-align: center;
    color: black;
    letter-spacing: 0.8px;
    word-spacing: 0.9px;
    position: relative;
    top: -5px;
    font-family: 'ＭＳ ゴシック', Georgia, Helvetica, Times, 'Times New Roman', serif;
}

input {
    /* 入力欄のフォント統一 */
    font-family: 'ＭＳ ゴシック', Georgia, Helvetica, Times, 'Times New Roman', serif;
}

.progress {
    /* プログレスバーの背景・サイズ */
    background-color: rgb(229, 233, 235);
    height: 2em;
    position: relative;
    width: 100%;
}

.dont-break-out {
    /* 長いURL・ファイル名を強制改行 */
    overflow-wrap: break-word;
    word-wrap: break-word;
    -ms-word-break: break-all;
    word-break: break-all;
    word-break: break-word;
    -ms-hyphens: auto;
    -moz-hyphens: auto;
    -webkit-hyphens: auto;
    hyphens: auto;
}

#logo {
    /* ロゴサイズ */
    width: 6%;
    margin-top: -8px;
}

@media screen and (max-width: 576px) {
    #logo {
        /* スマホ時のロゴ調整（必要なら非表示） */
        /* display: none; */
    }
}

.bg-light {
    /* 背景色 */
    background-color: white;
}

#brand-title {
    /* ブランドタイトル文字色 */
    color: black;
}

.signin-title {
    /* サインイン画面タイトル余白 */
    margin: 15px;
}

.input-field>label:first-of-type {
    /* 入力欄ラベル */
    display: block;
    margin-bottom: .5rem;
    font-weight: 400
}

.input-field>label:first-of-type.h5 {
    font-weight: 600
}

.input-field {
    /* 入力欄の上下余白 */
    position: relative;
    margin-bottom: 1.5rem;
    margin-top: 1.5rem;
    border-radius: 0px;
}

.signin {
    /* サインイン入力欄 */
    width: 100%;
    border-radius: 4px;
    margin-top: 0.5rem;
    padding: 0.6rem;
}

.btn {
    /* ボタン共通フォント */
    font-family: 'ＭＳ ゴシック', Georgia, Helvetica, Times, 'Times New Roman', serif;
}

.btn-custom {
    /* 緑色メインボタン */
    display: block;
    width: 100%;
    background-color: #009933;
    border-color: #00802b;
    color: white;
}

.btn-custom:active,
.btn-custom:target,
.btn.btn-custom:active,
.btn.btn-custom:focus,
.btn.btn-custom:hover {
    /* ボタンホバー・フォーカス時 */
    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, .18), 0 4px 15px 0 rgba(0, 0, 0, .15);
    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, .18), 0 4px 15px 0 rgba(0, 0, 0, .15);
    background-color: white;
    color: #009933;
    border-color: #009933;
}

.btn.btn-custom:disabled,
.btn.btn-custom[disabled] {
    /* 無効ボタン */
    cursor: not-allowed;
    pointer-events: none;
    border: 1px solid #999999;
    background-color: #cccccc;
    color: #666666;
}

.btn.btn-dark:active,
.btn.btn-dark:focus,
.btn.btn-dark:hover {
    /* ダークボタン */
    -webkit-box-shadow: 0 5px 11px 0 rgba(0, 0, 0, .18), 0 4px 15px 0 rgba(0, 0, 0, .15);
    box-shadow: 0 5px 11px 0 rgba(0, 0, 0, .18), 0 4px 15px 0 rgba(0, 0, 0, .15);
    background-color: white;
    color: black;
}

.upload-title {
    /* アップロード画面タイトル */
    display: inline;
    margin-bottom: 20px;
}

.lead {
    /* 補足説明テキスト */
    font-size: 1.25rem;
    font-weight: 300;
}

p {
    /* 段落 */
    display: inline;
}

#s3-img {
    /* S3イメージ */
    display: inline;
    margin-left: 15px;
    width: 8%;
}

@media screen and (max-width: 1024px) {
    #s3-img {
        width: 10%;
    }
}

@media screen and (max-width: 992px) {
    .upload-form {
        margin-top: 15px;
    }
}

.modal-content {
    /* モーダル中央寄せ */
    position: relative;
    display: flex;
    flex-direction: column;
    margin-top: 50%;
}

/* ===== ダウンロードフォームの横幅制御 ===== */
/* 画面サイズに応じてフォーム幅を調整する */
.download-wrapper {
    margin-left: auto;
    margin-right: auto;
    width: 100%;
    max-width: 95%;   /* スマホ：ほぼ全幅 */
}

/* タブレットサイズ */
@media (min-width: 768px) {
    .download-wrapper {
        max-width: 70%;
    }
}

/* PC・大画面（画面の約1/2） */
@media (min-width: 1200px) {
    .download-wrapper {
        max-width: 50%;
    }
}

/* ===== パスワード表示トグル（👁） ===== */
.password-wrapper {
    /* 👁 を入力欄内に配置するため relative */
    position: relative;
}

.password-wrapper input[type="password"],
.password-wrapper input[type="text"] {
    /* 右側に 👁 分の余白を確保 */
    padding-right: 38px;
}

/* 👁 アイコン（入力欄の中・右端） */
.password-eye {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #555;
    font-size: 14px;
    line-height: 1;
    user-select: none;
}

/* ブラウザ標準のパスワード表示アイコンを非表示 */
input[type="password"]::-ms-reveal,
input[type="password"]::-ms-clear {
    display: none;
}

input[type="password"]::-webkit-textfield-decoration-container {
    display: none;
}

/* ダウンロード開始メッセージの左右余白を縮める */
#download-message {
    padding-left: 12px;   /* ← 左余白を縮小（元は alert で大きい） */
    padding-right: 12px;  /* ← 右余白を縮小 */
}