/* アップロードシステム CSS */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', 'Meiryo', sans-serif;
    line-height: 1.6;
    color: #334155;
    background-color: #1e293b;
    min-height: 100vh;
}




/* Header */
.header {
    padding: 15px 0 0;
    position: relative;
    z-index: 100;
    background-color: #fff;
}

.header .container {
    display: flex;
    width: 90%;
    padding: 0;
    justify-content: space-between
}

.logo_area {
    width: 400px;

}

.logo_area p {
    color: #111;
}


.logo {
    font-family: Pacifico, serif;
    font-size: 2.8rem;
    color: rgb(251 191 36 / var(--tw-text-opacity, 1));
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    font-size: 1.875rem;
    line-height: 2.25rem;
    text-align: left;
    margin-bottom: 17px;
}


.tagline {
    font-size: 0.85rem;
    color: #a8b2c1;
    margin-top: -8px;
    font-weight: 300;
}

.nav-links {
    display: flex;
    gap: 5px;
    align-items: center;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #111;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #f4a261;
}

.nav-link i {
    font-size: 1.1rem;
}

/* firstview Section */

.firstview {
    position: relative;
    height: 385px;
}

.firstview_text {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    margin: auto;
    width: 583px;
    height: 100px;
    font-weight: bold;

}

.firstview_text h1 {
    font-weight: bold;
    color: #fff;
    stroke: #000;
}

.firstview_text p {
    text-align: center;
    color: #fff;
}

.full div {
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    height: 384px;
    margin: 0;
}

.full div.img01 {
    background-image: url(https://125naroom.com/demo/img/simple01.jpg);
}

.full div.img02 {
    background-image: url(https://125naroom.com/demo/img/simple02.jpg);
}

.full div.img03 {
    background-image: url(https://125naroom.com/demo/img/simple03.jpg);
}

.full .slick-dots {
    bottom: 4%;
    z-index: +1;
}


.slick-prev {
    left: 24px;
    z-index: 9999;
}

.slick-next {
    right: 24px;
    z-index: 9999;
}



#form_area {
    padding: 70px 0 0 0;

}

#form_area h1 {
    color: rgb(251 191 40);
    font-size: 28px;
    font-weight: bold;
}


#form_area h2 {
    color: rgb(30 41 59 / var(--tw-text-opacity, 1));
    font-weight: bold;
    font-size: 20px;
    border: none;
}

#form_area p.lead_text {
    text-align: center;
    color: #fff;
    padding: 5px 0 0 0;
}


.containar_cake {
    width: 50%;
    margin: 24px auto;
    background: #fff;
    border-radius: 30px;
    padding: 30px;
    display: flex;
    justify-content: space-between
}

.cake_uploading_area {
    width: 400px;

}

.cake_printing_image {
    width: 400px;

}


.cake_printing_image_containar {
    width: 383px;
    border-color: rgb(226 232 240 / var(--tw-border-opacity, 1));
    background-color: rgb(248 250 252 / var(--tw-bg-opacity, 1));
    padding: 20px;
    border-radius: 30px;
    ;
}

.cake_printing_image_containar img {
    width: 334px;
    border-radius: 30px;
}

.cake_printing_image .mention {
    border: 1px solid;
    background-color: rgb(255 251 235 / var(--tw-bg-opacity, 1));
    border-color: rgb(253 230 138 / var(--tw-border-opacity, 1));

    padding: 20px 40px;
    color: rgb(180 83 9 / var(--tw-text-opacity, 1));
    font-size: 14px;
    line-height: 1.6;
}


.theme_area {
    padding: 50px 0;
}

.theme_area .theme_containar {
    background: #fff;
    width: 50%;
    border-radius: 20px;
    text-align: center;
    margin: 0 auto 30px;
    padding: 40px 30px 50px;
}

.theme_area .theme_containar h2 {
    margin: 0;
}

.theme_area .theme_containar p {
    margin: 0 0 10px 0;
}


.theme_area .theme_containar select {
    text-align: left;
    padding-top: 12px;
    padding-bottom: 12px;
    padding-left: 12px;
    background-color: rgb(255 255 255 / var(--tw-bg-opacity, 1));
    border-color: rgb(203 213 225 / var(--tw-border-opacity, 1));
    border-radius: 8px;
    color: rgb(100 116 139 / var(--tw-text-opacity, 1));
    width: 448px;

}


.basic_containar {
    background: #fff;
    width: 50%;
    border-radius: 20px;
    text-align: center;
    margin: 0 auto 30px;
    padding: 30px 30px 40px;
}

.upload-section {}





























.container {
    margin: 0 auto;
    padding: 20px;
}

.form-container {
    background: white;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    margin: 20px 0;
}

h1 {
    text-align: center;
    color: #4a5568;
    font-weight: 300;
}

h2 {
    color: #2d3748;
    margin: 30px 0 15px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #e2e8f0;
    font-size: 1.5em;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2d3748;
}

.required {
    color: #e53e3e;
    margin-left: 5px;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group select {
    width: 100%;
    padding: 12px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}





/* ファイルアップロード関連 */
.upload-section {
    margin: 40px auto 20px;
    width: 60%;
    display: flex;
    flex-wrap: wrap;
    text-align: center;
    justify-content: space-between;
}

.file-upload-container {
    margin-bottom: 20px;
    width: 49%;
    gap: 20px;
    background-color: #fff;
    padding: 32px;
    border-radius: 12px;

}

.file-upload-group {}

.text-area {
    display: none;
}

.file-upload-group label {
    font-size: 14px;
    color: rgb(51 65 85 / var(--tw-text-opacity, 1));
    font-weight: bold;
    text-align: left;
    width: 100%;
    margin-bottom: 8px;
}

.file-upload-area {
    border: 2px dashed #cbd5e0;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
}

.file-upload-area:hover {
    border-color: rgb(251 191 36 / var(--tw-border-opacity, 1));

    background-color: rgb(255 251 235 / var(--tw-bg-opacity, 1));
}

.file-upload-area.dragover {
    border-color: #667eea;
    background: #e6f3ff;
}

.file-upload-area input[type="file"] {
    opacity: 0;
}

.upload-icon {
    font-size: 2em;
    color: #a0aec0;
    margin-bottom: 10px;
}

.upload-text {
    color: #718096;
    font-size: 14px;
}

/* プレビュー関連 */
.preview-container {
    margin-top: 15px;
    min-height: 150px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 10px;
    background: white;
}

.preview-item {
    position: relative;
    display: inline-block;
    margin: 5px;
}

.preview-image,
.preview-video {
    max-width: 150px;
    max-height: 150px;
    border-radius: 5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.preview-text {
    background: rgba(0, 0, 0, 0.0);
    color: white;
    padding: 15px;
    border-radius: 5px;
    max-width: 200px;
    min-height: 120px;
    font-size: 14px;
    font-weight: bold;
    text-align: center;
    display: flex;
    margin: 0 auto;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    word-wrap: break-word;
    text-shadow:
        -1px -1px 0 #000,
        1px -1px 0 #000,
        -1px 1px 0 #000,
        1px 1px 0 #000,
        -2px 0 0 #000,
        2px 0 0 #000,
        0 -2px 0 #000,
        0 2px 0 #000;
    line-height: 1.4;
}

.preview-text div {
    margin: 2px 0;
}

/* テキスト入力エリア */
.text-input-area {
    width: 100%;
    min-height: 100px;
    padding: 10px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    resize: vertical;
    font-family: inherit;
    font-size: 14px;
    line-height: 1.4;
}

.text-input-area:focus {
    outline: none;
    border-color: #667eea;
}

.text-input-area::placeholder {
    color: #a0aec0;
    font-style: italic;
}

/* 同意チェック */
.agreement-section {
    background: #fff5f5;
    border: 2px solid #fed7d7;
    border-radius: 10px;
    padding: 20px;
    margin: 30px 0;
    width: 50%;
    margin: 0 auto;
}

.agreement-text {
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 15px;
    color: #2d3748;
}

.agreement-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
}

.agreement-checkbox input[type="checkbox"] {
    transform: scale(1.2);
}

/* ボタン */
.btn {
    padding: 15px 30px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: #f59e0b;
    color: #000;
    margin: 0 auto;
    border-radius: 30px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    background: #f59e0b;
}

.btn-primary:disabled {
    background: #a0aec0;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-block {
    width: 251px;
    text-align: center;
    display: block;
    margin: 30px auto;
}

/* エラーメッセージ */
.error-message {
    background: #fed7d7;
    color: #c53030;
    padding: 15px;
    border-radius: 8px;
    margin: 20px 0;
    border-left: 4px solid #e53e3e;
}

.success-message {
    background: #c6f6d5;
    color: #2f855a;
    padding: 15px;
    border-radius: 8px;
    margin: 20px 0;
    border-left: 4px solid #38a169;
}




/* 完了画面 */
.completion-container {
    text-align: center;
    padding: 40px;
}

.completion-icon {
    font-size: 4em;
    color: #38a169;
    margin-bottom: 20px;
}

.completion-title {
    font-size: 2em;
    color: #2d3748;
    margin-bottom: 20px;
}

.completion-details {
    background: #f7fafc;
    padding: 20px;
    border-radius: 10px;
    margin: 20px 0;
    text-align: left;
    word-break: break-all;
}


#footer {
    padding: 40px;
    background: rgb(15 23 42 / var(--tw-bg-opacity, 1));
    width: 100%;
    text-align: center;
    color: #fff;
}

/* 自動入力されたフィールドのハイライト */
.auto-filled {
    background-color: #fffbcc;
    transition: background-color 2s ease;
}

/* 2秒後に通常の背景色に戻す */
.auto-filled {
    animation: fadeHighlight 2s forwards;
}

@keyframes fadeHighlight {
    from {
        background-color: #fffbcc;
    }

    to {
        background-color: white;
    }
}



/* テキスト入力セクション（5行） */

.text-line-input {
    width: 50%;
    margin: 30px auto;
    background: #fff;
    border-radius: 30px;
    padding: 30px;
}

.text-input-section {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
}

.text-input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 15px;
    background: #f7fafc;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
}

.text-input-group label {
    font-weight: 600;
    color: #2d3748;
    font-size: 14px;
}

.text-input-line {
    width: 100%;
    padding: 12px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-family: inherit;
    font-size: 16px;
    transition: all 0.3s ease;
}

.text-input-line:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.text-input-line::placeholder {
    color: #a0aec0;
    font-size: 14px;
}

.text-preview-container {
    min-height: 80px;
    background: white;
    border: 2px dashed #cbd5e0;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    position: relative;
    overflow: hidden;
}

.text-preview-container .preview-text {
    font-size: 24px;
    font-weight: 600;
    color: white;
    text-shadow:
        -2px -2px 0 #000,
        2px -2px 0 #000,
        -2px 2px 0 #000,
        2px 2px 0 #000,
        -2px 0 0 #000,
        2px 0 0 #000,
        0 -2px 0 #000,
        0 2px 0 #000;
    text-align: center;
    word-wrap: break-word;
    max-width: 100%;
}

.text-preview-container .preview-placeholder {
    color: #a0aec0;
    font-size: 14px;
    font-style: italic;
}

.section-description {
    color: #718096;
    font-size: 14px;
    margin-bottom: 15px;
    padding: 10px 15px;
    background: #edf2f7;
    border-radius: 6px;
    border-left: 3px solid #667eea;
}

/* 5行統合テキストプレビュー */
.unified-text-preview-container {
    margin-top: 25px;
    padding: 20px;
    background: linear-gradient(135deg, #667eea22 0%, #764ba222 100%);
    border-radius: 12px;
    border: 2px solid #667eea;
}

.unified-text-preview-container h3 {
    font-size: 16px;
    color: #4a5568;
    margin-bottom: 15px;
    text-align: center;
    font-weight: 600;
}

.unified-text-preview-container .preview-canvas {
    min-height: 200px;
    background: white;
    border: 2px dashed #cbd5e0;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    overflow: hidden;
}

.unified-text-preview-container .preview-text-line {
    font-family: "ヒラギノ明朝 ProN W6", "HiraMinProN-W6", "HG明朝E", "ＭＳ Ｐ明朝", "MS PMincho", "MS 明朝", serif;
    font-size: 24px;
    font-weight: 600;
    color: #000000;  /* 黒色 */
    text-shadow: none;  /* 黒縁なし */
    text-align: center;
    margin: 5px 0;
    width: 100%;
    line-height: 1.5;
}

.unified-text-preview-container .preview-text-line:first-child {
    font-size: 32px;
    color: #000;
    /* 黄色 */
    margin: 10px 0;
}

.unified-text-preview-container .preview-empty-line {
    color: #cbd5e0;
    font-size: 16px;
    font-style: italic;
    text-shadow: none;
}

.unified-text-preview-container .preview-placeholder {
    color: #a0aec0;
    font-size: 14px;
    font-style: italic;
}

/* 個別入力欄のプレビューを非表示 */
.text-input-group .text-preview-container {
    display: none;
}


/* レスポンシブ対応 */
@media (max-width: 768px) {
    .logo {
        font-family: Pacifico, serif;
        color: rgb(251 191 36 / var(--tw-text-opacity, 1));
        font-weight: 700;
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
        font-size: 18px;
        line-height: 0.25rem;
        text-align: left;
        margin-bottom: 17px;
    }

    .tagline {
        font-size: 11px;
    }

    .nav {
        display: none;
    }

    .nav-link i {
        font-size: 14px;
    }


    .firstview_text {
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        margin: auto;
        width: 85%;
        height: 100px;
        font-weight: bold;
    }

    .slick-next {
        right: 10px;
        z-index: 9999;
    }

    .slick-prev {
        left: 10px;
        z-index: 9999;
    }

    .firstview_text h1 {
        font-weight: bold;
        color: #fff;
        stroke: #000;
        font-size: 22px;
    }

    .firstview_text p {
        text-align: center;
        color: #fff;
        font-size: 13px;
    }

    .form_area h1 {
        color: rgb(251 191 40);
        font-size: 24px;
        font-weight: bold;
    }

    #form_area p.lead_text {
        text-align: center;
        color: #fff;
        padding: 5px 0 0 0;
        font-size: 14px;
    }


    .container {
        padding: 10px;
    }

    .form-container {
        padding: 20px;
    }

    .file-upload-container {
        flex-direction: column;
    }

    .theme-selection {
        flex-direction: column;
    }

    .containar_cake {
        width: 95%;
        display: block;
    }

    .cake_uploading_area {
        width: 100%;
    }

    .upload-section {
        margin: 40px auto 20px;
        width: 95%;
        display: block;
        flex-wrap: wrap;
        text-align: center;
        justify-content;
    }

    .cake_printing_image {
        width: 100%;
    }

    .cake_printing_image_containar {
        width: 100%;
        border-color: rgb(226 232 240 / var(--tw-border-opacity, 1));
        background-color: rgb(248 250 252 / var(--tw-bg-opacity, 1));
        padding: 20px;
        border-radius: 30px;
    }

    .cake_printing_image_containar img {
        width: 100%;
        border-radius: 30px;
    }

    .theme_area .theme_containar {
        background: #fff;
        width: 95%;
        border-radius: 20px;
        text-align: center;
        margin: 0 auto;
        padding: 40px 30px 50px;
    }

    .theme_area .theme_containar select {
        text-align: left;
        padding-top: 12px;
        padding-bottom: 12px;
        padding-left: 12px;
        background-color: rgb(255 255 255 / var(--tw-bg-opacity, 1));
        border-color: rgb(203 213 225 / var(--tw-border-opacity, 1));
        border-radius: 8px;
        color: rgb(100 116 139 / var(--tw-text-opacity, 1));
        width: 80%;
    }

    .basic_containar {
        background: #fff;
        width: 95%;
        border-radius: 20px;
        text-align: center;
        margin: 0 auto;
        padding: 40px 30px 50px;
    }

    .file-upload-container {
        margin-bottom: 20px;
        width: 100%;
        gap: 20px;
        background-color: #fff;
        padding: 32px;
    }

    .agreement-section {
        background: #fff5f5;
        border: 2px solid #fed7d7;
        border-radius: 10px;
        padding: 20px;
        margin: 30px 0;
        width: 95%;
        margin: 0 auto;
    }


    /* ローディング */
    .loading {
        display: none;
        text-align: center;
        padding: 20px;
    }

    .loading.show {
        display: block;
    }

    .spinner {
        width: 40px;
        height: 40px;
        border: 4px solid #e2e8f0;
        border-top: 4px solid #667eea;
        border-radius: 50%;
        animation: spin 1s linear infinite;
        margin: 0 auto 10px;
    }

    @keyframes spin {
        0% {
            transform: rotate(0deg);
        }

        100% {
            transform: rotate(360deg);
        }
    }

    /* プログレスバー */
    .progress-container {
        width: 100%;
        background: #e2e8f0;
        border-radius: 10px;
        overflow: hidden;
        margin: 10px 0;
    }

    .progress-bar {
        height: 8px;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        width: 0%;
        transition: width 0.3s ease;
    }

    /* ファイル情報表示 */
    .file-info {
        font-size: 12px;
        color: #718096;
        margin-top: 5px;
    }

    .file-size {
        color: #4a5568;
    }

    .file-error {
        color: #e53e3e;
    }

    .text-line-input {
        width: 90%;
        margin: 30px auto;
        background: #fff;
        border-radius: 30px;
        padding: 30px;
    }
}