@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;600;700&display=swap');

/* ===== Reset & Base ===== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    background-color: #f0f2f5;
    color: #333;
    line-height: 1.8;
    min-height: 100vh;
}

/* ===== Layout ===== */
.page-wrapper {
    max-width: 780px;
    margin: 0 auto;
    padding: 40px 20px 60px;
}

/* ===== Header ===== */
.page-header {
    background: linear-gradient(135deg, #ff8c00, #ff6600);
    color: #fff;
    text-align: center;
    padding: 32px 24px;
    border-radius: 10px 10px 0 0;
    box-shadow: 0 4px 16px rgba(255, 102, 0, 0.2);
}

.page-header h1 {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.06em;
}

/* ===== Form Card ===== */
.form-card {
    background: #fff;
    border-radius: 0 0 10px 10px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.07);
    padding: 0 0 40px;
}

/* ===== Step Indicator ===== */
.step-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f6f8;
    padding: 16px 0;
    border-bottom: 1px solid #e8e8e8;
    gap: 0;
}

.step {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    color: #b0b0b0;
    font-weight: 500;
}

.step.active {
    color: #ff6600;
    font-weight: 700;
}

.step.completed {
    color: #999;
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #ddd;
    color: #b0b0b0;
    font-size: 0.8rem;
    font-weight: 700;
    border: 2px solid transparent;
}

.step.active .step-number {
    background: #ff6600;
    color: #fff;
    border-color: #ff6600;
    box-shadow: 0 2px 8px rgba(255, 102, 0, 0.35);
}

.step.completed .step-number {
    background: #bbb;
    color: #fff;
}

.step-arrow {
    margin: 0 16px;
    color: #ccc;
    font-size: 0.65rem;
}

/* ===== Error ===== */
.error-summary {
    background: #fff5f5;
    border: 1px solid #fcc;
    border-radius: 6px;
    padding: 16px 20px;
    margin: 20px 28px 0;
    color: #c53030;
    font-size: 0.85rem;
    font-weight: 500;
    line-height: 1.7;
}

.error-summary p {
    margin-bottom: 2px;
}

/* ===== Form Rows (Table-like) ===== */
.form-row {
    display: flex;
    align-items: flex-start;
    border-bottom: 1px solid #eee;
    min-height: 60px;
}

.form-label {
    width: 200px;
    min-width: 200px;
    padding: 16px 16px 16px 28px;
    font-size: 0.88rem;
    font-weight: 600;
    color: #444;
    background: #fafbfc;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    line-height: 1.5;
}

.form-input {
    flex: 1;
    padding: 12px 28px 12px 16px;
    display: flex;
    align-items: center;
}

.req {
    display: inline-block;
    background: #e53e3e;
    color: #fff;
    font-size: 0.6rem;
    font-weight: 700;
    padding: 1px 7px;
    border-radius: 3px;
    letter-spacing: 0.05em;
}

.opt {
    font-size: 0.72rem;
    color: #888;
    font-weight: 400;
    display: block;
    width: 100%;
}

/* ===== Inputs ===== */
.form-input input[type="text"],
.form-input input[type="email"],
.form-input input[type="tel"],
.form-input textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d0d0d0;
    border-radius: 4px;
    font-size: 0.92rem;
    font-family: 'Noto Sans JP', sans-serif;
    color: #333;
    background: #fff;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-input input:focus,
.form-input textarea:focus {
    border-color: #ff6600;
    box-shadow: 0 0 0 3px rgba(255, 102, 0, 0.1);
}

.form-input textarea {
    min-height: 140px;
    resize: vertical;
}

/* Required field pink background */
.form-input .required-bg {
    background: #fde8e8;
}

.form-input .required-bg:focus {
    background: #fff;
}

.form-input .error {
    border-color: #e53e3e;
}

/* ===== Radio Group ===== */
.radio-group {
    flex-wrap: wrap;
    gap: 4px 20px;
}

.radio-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.92rem;
    cursor: pointer;
    font-weight: 400;
}

.radio-label input[type="radio"] {
    accent-color: #ff6600;
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.field-note {
    width: 100%;
    font-size: 0.78rem;
    color: #888;
    margin-top: 2px;
}

/* ===== Date Group ===== */
.date-group {
    gap: 6px;
    flex-wrap: wrap;
}

.date-group select {
    padding: 8px 6px;
    border: 1px solid #d0d0d0;
    border-radius: 4px;
    font-size: 0.9rem;
    font-family: 'Noto Sans JP', sans-serif;
    color: #333;
    background: #fff;
    outline: none;
    cursor: pointer;
    min-width: 70px;
}

.date-group select:focus {
    border-color: #ff6600;
}

/* ===== Price Note ===== */
.price-note {
    margin: 28px 28px 0;
    padding: 20px 24px;
    background: #fff8f0;
    border: 1px solid #ffe0b2;
    border-radius: 8px;
    font-size: 0.88rem;
    color: #555;
    line-height: 1.8;
}

.price-note h3 {
    font-size: 0.95rem;
    font-weight: 700;
    color: #e65100;
    margin-bottom: 10px;
}

.price-note ul {
    list-style: none;
    padding: 0;
    margin-bottom: 10px;
}

.price-note ul li {
    padding: 2px 0;
}

.price-note ul li strong {
    color: #333;
}

.price-note p {
    font-size: 0.82rem;
    color: #777;
}

/* ===== Buttons ===== */
.btn-area {
    margin-top: 36px;
    text-align: center;
    padding: 0 28px;
}

.btn-primary {
    display: inline-block;
    background: #ff6600;
    color: #fff;
    border: none;
    padding: 16px 56px;
    font-size: 1.1rem;
    font-weight: 700;
    font-family: 'Noto Sans JP', sans-serif;
    border-radius: 6px;
    cursor: pointer;
    letter-spacing: 0.08em;
    transition: all 0.25s;
    box-shadow: 0 3px 0 #cc5200, 0 4px 12px rgba(255, 102, 0, 0.2);
    position: relative;
    top: 0;
}

.btn-primary:hover {
    background: #ff7a1a;
    top: -1px;
    box-shadow: 0 4px 0 #cc5200, 0 6px 16px rgba(255, 102, 0, 0.3);
}

.btn-primary:active {
    top: 2px;
    box-shadow: 0 1px 0 #cc5200, 0 2px 6px rgba(255, 102, 0, 0.15);
}

.btn-secondary {
    display: inline-block;
    background: #fff;
    color: #666;
    border: 2px solid #ccc;
    padding: 16px 40px;
    font-size: 1rem;
    font-weight: 600;
    font-family: 'Noto Sans JP', sans-serif;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.25s;
    margin-right: 16px;
}

.btn-secondary:hover {
    background: #f5f5f5;
    border-color: #999;
    color: #444;
}

/* ===== Confirm Table ===== */
.confirm-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
}

.confirm-table th,
.confirm-table td {
    padding: 14px 16px;
    text-align: left;
    font-size: 0.9rem;
    vertical-align: top;
    border-bottom: 1px solid #eee;
}

.confirm-table th {
    background: #f7f8fa;
    color: #555;
    font-weight: 600;
    width: 200px;
    white-space: nowrap;
    padding-left: 28px;
}

.confirm-table td {
    color: #222;
    font-weight: 500;
    word-break: break-all;
    white-space: pre-wrap;
    padding-right: 28px;
}

.confirm-table tr:last-child th,
.confirm-table tr:last-child td {
    border-bottom: none;
}

/* ===== Complete ===== */
.complete-area {
    text-align: center;
    padding: 50px 28px 30px;
}

.complete-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 24px;
    background: #ff6600;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(255, 102, 0, 0.3);
}

.complete-icon svg {
    width: 36px;
    height: 36px;
    fill: none;
    stroke: #fff;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.complete-area h2 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #222;
    margin-bottom: 16px;
}

.complete-area p {
    font-size: 0.9rem;
    color: #666;
    line-height: 2;
}

.btn-back-home {
    display: inline-block;
    margin-top: 32px;
    color: #ff6600;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: border-color 0.3s;
}

.btn-back-home:hover {
    border-bottom-color: #ff6600;
}

/* ===== Footer ===== */
.page-footer {
    text-align: center;
    margin-top: 36px;
    font-size: 0.75rem;
    color: #aaa;
}

/* ===== Responsive ===== */
@media (max-width: 640px) {
    .page-wrapper {
        padding: 16px 8px 40px;
    }

    .page-header {
        padding: 24px 16px;
        border-radius: 8px 8px 0 0;
    }

    .page-header h1 {
        font-size: 1.2rem;
    }

    .form-row {
        flex-direction: column;
    }

    .form-label {
        width: 100%;
        min-width: 100%;
        padding: 12px 16px 4px;
        background: transparent;
        font-size: 0.85rem;
    }

    .form-input {
        padding: 4px 16px 12px;
    }

    .confirm-table th {
        width: 120px;
        padding-left: 16px;
        font-size: 0.82rem;
    }

    .confirm-table td {
        padding-right: 16px;
        font-size: 0.82rem;
    }

    .btn-area {
        display: flex;
        flex-direction: column;
        gap: 12px;
        align-items: center;
    }

    .btn-secondary {
        margin-right: 0;
    }

    .btn-primary {
        padding: 14px 44px;
        font-size: 1rem;
    }

    .error-summary {
        margin: 16px 16px 0;
    }

    .price-note {
        margin: 20px 16px 0;
    }
}