@import url(http://fonts.googleapis.com/earlyaccess/notosansjp.css);

body {
    font-family: 'Noto Sans JP','Roboto', sans-serif;
    font-size: 16px;
    color: #333;
    background-color: #f8f8f8;
    line-height: 1.5;
}

h1 {
    font-size: 28px;
    margin-top: 0;
    color: #008CBA
}

/* コンテナ用 */
.container {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    max-width: 2000px;
    margin: 0 auto;
    padding: 20px;
    margin-left: 0;
}

.title-and-help {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

form {
    background-color: #fff;
    padding: 20px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-shadow: 0 0 10px #ccc;
    max-width: 740px;
    min-width: 740px;
    width: 100%;
    margin-top: 0px;
}

label {
    display: inline-block;
    margin-bottom: 5px;
}


input[type="text"], select, input[type="number"] {
    width: 100%;
    padding: 5px 10px;
    margin: 2px 0;
    box-sizing: border-box;
    border: 2px solid #ccc;
    border-radius: 4px;
    font-size: large;
}

button[type="submit"] {
    height: 60px; /* 必要に応じて調整 */
    background-color: #008CBA;
    color: #fff;
    padding: 16px 50px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
}

    input[type="submit"]:hover {
        background-color: #006E9D;
    }

.leftpedding td {
    padding-left: 10px;
}

/* ラベル用 */
.form-group {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    flex-wrap: nowrap; /* この行を追加 */
    /*　flex-wrap: wrap; /* この行を追加 */
}

    .form-group label {
        margin-right: 10px; /* 右側マージンを設定 */
        margin-bottom: 0;
        width: 280px; /* 幅を指定 */
        text-align: right; /* 右寄せに設定 */
    }

.form-group2 {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    flex-wrap: nowrap; /* この行を追加 */
    /*　flex-wrap: wrap; /* この行を追加 */
}

    .form-group2 label {
        margin-right: 10px; /* 右側マージンを設定 */
        margin-bottom: 0;
        width: 200px; /* 幅を指定 */
        text-align: right; /* 右寄せに設定 */
    }


.option-container {
    display: inline-flex;
    align-items: center;
    margin-right: 10px;
    margin-bottom: 10px;
}

    .option-container select {
        margin-left: 5px;
    }

#browser_options,
#pdf_options {
    margin-top: 10px; /* マイナスの値にすることで余白を詰めます */
    margin-left: 40px;
}

    #browser_options select {
        margin-top: 2px;
        font-size: 12px;
        padding: 2px;
        width: 160px;
    }

    #pdf_options select {
        margin-top: 2px;
        font-size: 12px;
        padding: 0px;
        width: 160px;
    }

/*均等割り付けチェック*/
#kintu_options {
    margin-top: -20px; /* マイナスの値にすることで余白を詰めます */
    margin-left: 40px;
}



/* 以下、PDF出力時のウィンドウ用 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 100;
    display: none; /* 追加 */
}

.modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 450px;
    background: white;
    padding: 20px;
    z-index: 101;
    border-radius: 5px;
    box-shadow: 0px 0px 10px rgba(0,0,0,0.5);
    display: none; /* 追加 */
}

    .modal p {
        margin-bottom: 20px;
    }

.show {
    display: block !important;
}

.button-container {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #428bca;
    color: #fff;
    border-radius: 5px;
    text-decoration: none;
    text-align: center;
    font-size: 14px;
    transition: background-color 0.2s ease-in-out;
}

    .btn:hover {
        background-color: #3071a9;
    }

.btn-view {
    margin-right: 10px;
}

.close {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
}

    .close:hover {
        color: #ccc;
    }

/* ヘルプ用モーダル */
.modal_help {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    max-width: 700px;
    background: white;
    padding: 20px;
    z-index: 101;
    border-radius: 5px;
    box-shadow: 0px 0px 10px rgba(0,0,0,0.5);
    display: none;
}

    .modal_help.show {
        display: block;
    }

    .modal_help p {
        margin-bottom: 20px;
    }

    /* モーダルの閉じるボタン */
    .modal_help .close {
        position: absolute;
        top: 10px;
        right: 10px;
        font-size: 30px;
        font-weight: bold;
        cursor: pointer;
    }

        .modal_help .close:hover {
            color: #ccc;
        }

/* モーダルオーバーレイ */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 100;
    display: none;
}

    .modal-overlay.show {
        display: block;
    }

/*** 回転 DropdownList ***/

.angleArea label {
    font-size: 14px;
    margin-right: 5px;
}


.angleArea select, .angleArea input {
    display: inline-block;
    font-size: 14px;
    padding: 2px 5px;
    height: 30px;
    border: 1px solid #ccc;
}

/* 右寄せ */
.angleArea {
    text-align: right;
}

/* 3. ラベルとドロップダウンの間に改行を入れない */
    .angleArea > label {
        display: inline-block;
    }

/* 4. ドロップダウンの幅を狭く */
    .angleArea > select {
        width: 100px;
    }

    .angleArea > input {
        width: 60px;
    }

/*** フォント DropdownList ***/

.fontArea label {
    font-size: 14px;
    margin-right: 5px;
}


.fontArea select, .fontArea input {
    display: inline-block;
    font-size: 14px;
    padding: 2px 5px, 0px, 0px;
    height: 30px;
    border: 1px solid #ccc;
}



/* 左寄せ */
.fontArea {
    padding-right: 0px;
    margin-right: 0px;
    text-align: left;
}

    /* 3. ラベルとドロップダウンの間に改行を入れない */
    .fontArea > label {
        display: inline-block;
    }

    /* 4. ドロップダウンの幅を狭く */
    .fontArea > select {
        width: 250px;
    }
    .fontArea > input {
        width: 50px;
    }

    #unifiedTable td {
        padding: 5px; /* 全体のセルのパディングを調整 */
        vertical-align: middle; /* セルの内容を垂直方向に中央揃え */
    }

    #kintu_options {
        padding-top: 20px; /* 均等割り付けオプションの位置を下げる */
    }