* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
}

body {
    min-height: 100vh;
    margin: 0;
    background:
        linear-gradient(135deg,
            #edf3ff 0%,
            #f8faff 50%,
            #eef5ff 100%);
    color: #242b36;
    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "Helvetica Neue",
        "Hiragino Sans",
        "Yu Gothic",
        YuGothic,
        Meiryo,
        sans-serif;
}

button,
input {
    font: inherit;
}

button {
    appearance: none;
}

.hidden {
    display: none !important;
}


/* ヘッダー */

.site-header {
    width: 100%;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid #dfe5ef;
    box-shadow: 0 3px 16px rgba(24, 54, 100, 0.06);
}

.header-inner {
    display: flex;
    align-items: center;
    width: min(1100px, calc(100% - 40px));
    min-height: 72px;
    margin: 0 auto;
}

.site-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 15px;
    border-radius: 9px;
    background: #2166d1;
    color: #ffffff;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 1px;
    text-decoration: none;
}

.site-name {
    margin: 0 0 0 15px;
    color: #293241;
    font-size: 18px;
    font-weight: 700;
}


/* メイン */

.main-content {
    display: flex;
    align-items: center;
    justify-content: center;
    width: min(900px, calc(100% - 32px));
    min-height: calc(100vh - 145px);
    margin: 0 auto;
    padding: 48px 0;
}

.report-card {
    width: 100%;
    max-width: 660px;
    padding: 44px 48px;
    border: 1px solid #e0e6ef;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow:
        0 22px 65px rgba(35, 68, 118, 0.13);
}

.page-icon {
    margin-bottom: 10px;
    text-align: center;
    font-size: 55px;
}

h1 {
    margin: 0;
    color: #202938;
    text-align: center;
    font-size: 31px;
    letter-spacing: 0.03em;
}

.page-description {
    margin: 13px 0 34px;
    color: #727b88;
    text-align: center;
    font-size: 15px;
    line-height: 1.8;
}


/* 入力欄 */

.form-group {
    margin-bottom: 24px;
}

.form-group>label {
    display: block;
    margin-bottom: 9px;
    color: #313a48;
    font-size: 15px;
    font-weight: 700;
}

input[type="text"] {
    width: 100%;
    height: 51px;
    padding: 0 15px;
    border: 1px solid #cbd3df;
    border-radius: 10px;
    outline: none;
    background: #ffffff;
    color: #242b36;
    font-size: 16px;
    transition:
        border-color 0.2s,
        box-shadow 0.2s,
        background-color 0.2s;
}

input[type="text"]::placeholder {
    color: #a0a7b1;
}

input[type="text"]:hover {
    border-color: #aeb8c7;
}

input[type="text"]:focus {
    border-color: #2166d1;
    box-shadow:
        0 0 0 4px rgba(33, 102, 209, 0.13);
}


/* ファイル選択 */

.upload-area {
    position: relative;
    overflow: hidden;
    width: 100%;
    border: 2px dashed #aab9cf;
    border-radius: 15px;
    background: #f8faff;
    transition:
        border-color 0.2s,
        background-color 0.2s,
        transform 0.2s;
}

.upload-area:hover,
.upload-area.dragover {
    border-color: #2166d1;
    background: #eff5ff;
    transform: translateY(-1px);
}

.upload-area input[type="file"] {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.upload-label {
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: center;
    min-height: 190px;
    padding: 28px;
    cursor: pointer;
    text-align: center;
}

.upload-icon {
    margin-bottom: 9px;
    font-size: 44px;
}

.upload-title {
    color: #2166d1;
    font-size: 17px;
    font-weight: 800;
}

.upload-description {
    margin-top: 8px;
    color: #7c8694;
    font-size: 13px;
}

.file-information {
    margin-top: 12px;
    padding: 12px 14px;
    border-radius: 9px;
    background: #f1f3f7;
    color: #6c7480;
    font-size: 13px;
    line-height: 1.6;
    word-break: break-all;
}

.file-information.selected {
    background: #ebf8ef;
    color: #25723b;
    font-weight: 700;
}

.file-note {
    margin: 10px 0 0;
    color: #898f99;
    font-size: 12px;
    line-height: 1.7;
}


/* 確認欄 */

.check-area {
    display: flex;
    align-items: flex-start;
    margin: 29px 0;
    padding: 15px;
    border-radius: 10px;
    background: #f5f7fa;
}

.check-area input[type="checkbox"] {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    margin: 2px 10px 0 0;
    accent-color: #2166d1;
}

.check-area label {
    color: #515a67;
    font-size: 14px;
    line-height: 1.6;
}


/* 提出ボタン */

.submit-button {
    width: 100%;
    min-height: 56px;
    padding: 13px 20px;
    border: none;
    border-radius: 11px;
    background: #2166d1;
    color: #ffffff;
    cursor: pointer;
    font-size: 17px;
    font-weight: 800;
    transition:
        background-color 0.2s,
        transform 0.2s,
        box-shadow 0.2s;
}

.submit-button:hover {
    background: #1757b9;
    box-shadow:
        0 11px 26px rgba(33, 102, 209, 0.25);
    transform: translateY(-1px);
}

.submit-button:active {
    box-shadow: none;
    transform: translateY(0);
}

.submit-button:disabled {
    background: #93a9ca;
    cursor: wait;
    box-shadow: none;
    transform: none;
}

.dummy-notice {
    margin: 18px 0 0;
    color: #9a7c42;
    text-align: center;
    font-size: 12px;
    line-height: 1.7;
}


/* 提出完了画面 */

.completion-card {
    max-width: 680px;
    text-align: center;
}

.success-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 92px;
    height: 92px;
    margin: 0 auto 23px;
    border-radius: 50%;
    background: #24a45a;
    color: #ffffff;
    box-shadow:
        0 15px 32px rgba(36, 164, 90, 0.27);
    font-size: 52px;
    font-weight: 800;
}

.success-title {
    color: #20894b;
}

.success-message {
    margin: 13px 0 31px;
    color: #626b78;
    font-size: 16px;
}

.submission-information {
    overflow: hidden;
    border: 1px solid #dce2eb;
    border-radius: 13px;
    text-align: left;
}

.information-row {
    display: grid;
    grid-template-columns: 145px 1fr;
    border-bottom: 1px solid #e5e9ef;
}

.information-row:last-child {
    border-bottom: none;
}

.information-label,
.information-value {
    padding: 15px 17px;
    font-size: 14px;
    line-height: 1.6;
    word-break: break-word;
}

.information-label {
    background: #f5f7fa;
    color: #596270;
    font-weight: 700;
}

.information-value {
    background: #ffffff;
    color: #242d39;
}

.submission-id {
    color: #155dc5;
    font-family:
        Monaco,
        Consolas,
        monospace;
    font-weight: 800;
}

.complete-message-box {
    margin-top: 23px;
    padding: 17px;
    border: 1px solid #bfe5ca;
    border-radius: 11px;
    background: #effaf2;
    color: #287440;
}

.complete-message-box strong {
    font-size: 15px;
}

.complete-message-box p {
    margin: 5px 0 0;
    font-size: 13px;
}

.complete-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 23px;
}

.print-button,
.back-button {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 53px;
    padding: 12px 16px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 800;
    transition:
        background-color 0.2s,
        color 0.2s,
        transform 0.2s;
}

.print-button {
    border: 1px solid #2166d1;
    background: #ffffff;
    color: #2166d1;
}

.back-button {
    border: 1px solid #2166d1;
    background: #2166d1;
    color: #ffffff;
}

.print-button:hover {
    background: #eef5ff;
    transform: translateY(-1px);
}

.back-button:hover {
    background: #1757b9;
    transform: translateY(-1px);
}


/* フッター */

.site-footer {
    padding: 15px 20px 25px;
    color: #8a929e;
    text-align: center;
    font-size: 12px;
}

.site-footer p {
    margin: 0;
}


/* スマートフォン */

@media screen and (max-width: 640px) {

    .header-inner {
        width: calc(100% - 28px);
        min-height: 64px;
    }

    .site-logo {
        padding: 8px 11px;
        font-size: 13px;
    }

    .site-name {
        margin-left: 11px;
        font-size: 15px;
    }

    .main-content {
        width: calc(100% - 24px);
        min-height: auto;
        padding: 25px 0;
    }

    .report-card {
        padding: 32px 20px;
        border-radius: 17px;
    }

    h1 {
        font-size: 26px;
    }

    .page-icon {
        font-size: 48px;
    }

    .upload-label {
        min-height: 165px;
        padding: 20px;
    }

    .information-row {
        display: block;
    }

    .information-label {
        display: block;
        padding-bottom: 7px;
    }

    .information-value {
        display: block;
        padding-top: 7px;
    }

    .complete-buttons {
        grid-template-columns: 1fr;
    }

}


/* 印刷 */

@media print {

    body {
        background: #ffffff;
    }

    .site-header,
    .site-footer,
    .complete-buttons,
    .dummy-notice {
        display: none !important;
    }

    .main-content {
        width: 100%;
        min-height: auto;
        padding: 0;
    }

    .report-card {
        max-width: none;
        padding: 20px;
        border: none;
        box-shadow: none;
    }

}