/* リセット */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
font-family:'Noto Serif JP', serif;
}

.container {
    /*max-width: 800px;*/
    /*margin: 0 auto;*/
    /*background: white;*/
    /*border-radius: 8px;*/
    /*box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);*/
    /*overflow: hidden;*/
}

/* ヘッダー */
.form-header{
background:url(../img/ad_c_img02_right.png);
background-repeat:no-repeat;
background-size:cover;
background-position:center center;
padding:60px 0;
text-align:center;
color:#fff;
position: relative;
z-index:-2;
}
.form-header:before{
content:"";
display:block;
/*background:rgba(28,65,102,0.8);*/
background:rgba(38,45,51,0.8);
width:100%;
height:100%;
position: absolute;
top:0;
left:0;
z-index:-1;
}

.form-header h1 {
    font-size: 28px;
    margin-bottom: 20px;
    font-weight: 600;
}
.form-header h1 span{
font-size: 20px;
display:block;
margin-bottom:10px;
}

.subtitle {
    font-size: 14px;
    opacity: 0.9;
}


.amazon_gift{
/*background:#fff;*/
background:#dbb400;
color:#262D33;
padding:10px 20px;
border-radius:10px;
max-width:700px;
margin:20px auto 0;
font-weight:bold;
font-size: 20px;
}

.place_box{
margin:0 auto;
padding:30px 0 0!important;
text-align:center;

/*background:rgba(38,45,51,0.8);*/
/*color:#fff;*/
}
.place_title{
font-size:20px;
text-align:center;
margin:0 auto 10px;
}
.place_box iframe{
max-width:700px;
margin:0 auto 10px;
width:100%;
height:250px;

}
.place{
font-size:16px;
text-align:center;
}



/* プログレスバー */
.progress-bar {
max-width:660px;
margin:0 auto;
display: flex;
justify-content: space-between;
padding: 30px 0px 0;
}
/*
.progress-bar::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50px;
    right: 50px;
    height: 2px;
    background: #e0e0e0;
    z-index: 0;
}*/

.step {
flex: 1;
text-align: center;
position: relative;
}
.step::before {
    content: '';
    position: absolute;
    top: 15px;
    left: 0;
    right: 0;
    height: 2px;
    background: #e0e0e0;
    z-index: 0;
}
.step:first-child::before {
    left: 50%;
}
.step:last-child::before {
    right: 50%;
}


.step-number {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #e0e0e0;
    color: #999;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
    position: relative;
    z-index: 1;
    transition: all 0.3s;
}
.step.active .step-number{
    background: #667eea;
    color: white;
    transform: scale(1.2);
}


.step.completed .step-number {
background: #4caf50;
color:#fff;
}
.step-label {
margin-top: 8px;
font-size: 12px;
color: #999;
}
.step.active .step-label {
color: #667eea;
}

.form_container {
max-width: 800px;
margin: 0 auto;
}
/* フォームステップ */
.form-step {
display: none;
padding: 40px 50px;
animation: fadeIn 0.4s;
}

.form-step.active {
display: block;
}



/* フォームステップ */
.form-step {
    display: none;
    padding: 40px 50px;
    animation: fadeIn 0.4s;
}

.form-step.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-step h2 {
    font-size: 22px;
    margin-bottom: 30px;
    color: #333;
    font-weight: 600;
}

/* フォームグループ */
.form-group {
    margin-bottom: 25px;
}

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

.form-group label.required::after {
    content: '必須';
    color: #e74c3c;
    margin-left: 4px;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="date"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 15px;
    transition: border-color 0.3s, box-shadow 0.3s;
    font-family: inherit;
}

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

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    padding-right: 40px;
}

/* 郵便番号検索
.postal-group {
    display: flex;
    gap: 10px;
}

.postal-group input {
    flex: 1;
}

.btn-search {
    padding: 12px 20px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    transition: background 0.3s;
}

.btn-search:hover {
    background: #5568d3;
}
 */


/* Flatpickrカスタムスタイル */
.flatpickr-calendar {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    border: none;
}

.flatpickr-day.selected {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #667eea;
}

.flatpickr-day.selected:hover,
.flatpickr-day.selected:focus {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #667eea;
}

.flatpickr-day:hover {
    background: #f0f0ff;
    border-color: #667eea;
}

.flatpickr-day.today {
    border-color: #667eea;
}

.flatpickr-months .flatpickr-month {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.flatpickr-current-month .flatpickr-monthDropdown-months {
    background: transparent;
    color: white;
}

.flatpickr-current-month .numInputWrapper {
    color: white;
}

.flatpickr-weekdays {
    background: #f8f8ff;
}

.flatpickr-weekday {
    color: #667eea;
    font-weight: 600;
}

.flatpickr-months .flatpickr-prev-month:hover svg,
.flatpickr-months .flatpickr-next-month:hover svg {
    fill: white;
}

.flatpickr-months .flatpickr-prev-month svg,
.flatpickr-months .flatpickr-next-month svg {
    fill: white;
}


/* エラーメッセージ */
.error-message {
    display: block;
    color: #e74c3c;
    font-size: 13px;
    margin-top: 5px;
    min-height: 18px;
}

.form-group.error input,
.form-group.error select,
.form-group.error textarea {
    border-color: #e74c3c;
}

/* ナビゲーションボタン */
.form-navigation {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #e0e0e0;
}

.btn {
    padding: 14px 30px;
    border: none;
    border-radius: 4px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    /*min-width: 120px;*/
    width:100%;
}

.btn-prev {
    background: #f5f5f5;
    color: #666;
}

.btn-prev:hover {
    background: #e0e0e0;
}

.btn-next,
.btn-submit {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    margin-left: auto;
}

.btn-next:hover,
.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* 確認画面 */
.confirm-section {
    margin-bottom: 30px;
}

.confirm-section h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #667eea;
    font-weight: 600;
    padding-bottom: 10px;
    border-bottom: 2px solid #667eea;
}

.confirm-table {
    width: 100%;
    border-collapse: collapse;
}

.confirm-table tr {
    border-bottom: 1px solid #f0f0f0;
}

.confirm-table th,
.confirm-table td {
    padding: 15px 10px;
    text-align: left;
}

.confirm-table th {
    width: 200px;
    font-weight: 600;
    color: #666;
    background: #fafafa;
    font-size: 14px;
}

.confirm-table td {
    color: #333;
    font-size: 15px;
}

/* レスポンシブ */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }


.form-header{
padding:5% 3%;
}
.form-header h1 {
font-size: 20px;
margin-bottom:5%;
}
.form-header:before{
}
.form-header h1 span{
font-size: 16px;
margin-bottom:2%;
}
.subtitle {
}
.amazon_gift{
padding:2% 3%;
max-width:90%;
margin:3% auto 0;
font-size: 16px;
}

.place_box{
padding:5% 0 0!important;
}
.place_title{
font-size:16px;
margin:0 auto 2%;
}
.place_box iframe{
margin:0 auto 2%;
width:100%;
height:200px;
}
.place{
font-size:14px;
}



    .progress-bar {
        padding: 20px 15px;
    }

    .progress-bar::before {
        left: 15px;
        right: 15px;
    }

    .step-label {
        font-size: 11px;
    }

    .step-number {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }

    .form-step {
        padding: 30px 20px;
    }

    .form-step h2 {
        font-size: 20px;
    }
/*
    .postal-group {
        flex-direction: column;
    }

    .btn-search {
        width: 100%;
    }
*/
    .form-navigation {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .btn-next,
    .btn-submit {
        margin-left: 0;
    }

    .confirm-table th,
    .confirm-table td {
        display: block;
        width: 100%;
    }

    .confirm-table th {
        padding-bottom: 5px;
        background: none;
        font-size: 13px;
    }

    .confirm-table td {
        padding-top: 0;
        padding-bottom: 15px;
    }
}

/* ローディング表示 */
.loading {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading.active {
    display: flex;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}


/* thanks */
/* ヘッダー */
.thanks-header{
background:url(../img/ad_c_img02_right.png);
background-repeat:no-repeat;
background-size:cover;
background-position:center center;
padding:60px 0;
text-align:center;
color:#fff;
position: relative;
z-index:-2;
}
.thanks-header:before{
content:"";
display:block;
background:rgba(28,65,102,0.8);
width:100%;
height:100%;
position: absolute;
top:0;
left:0;
z-index:-1;
}
.thanks-header h1 {
font-size: 28px;
margin-bottom: 10px;
font-weight: 600;
}

.thanks-body h2{
text-align:center;
margin:40px 0;
}

.thanks_page {
margin:0 auto 30px;
padding: 30px;
border: 1px #ccc solid;
text-align: center;
max-width:1080px;
}

.thanks_page p {
font-size: 16px;
padding-bottom:1em;
}
.txt_attention{
padding: 1em 25px;
}
.txt_attention li.small_txt{
font-size:12px;
}

.thanks_link{
text-align:center;
}

@media (max-width: 768px) {
.thanks-container {
}

            .thanks-header {
                /*padding: 40px 20px;*/
            }

            .thanks-header h1 {
                font-size: 24px;
            }

            .thanks-body {
                padding: 30px 20px;
            }

            .thanks-body h2 {
                font-size: 20px;
            }
        }
