/* ============================================
   ふとんレンタル LP — 申込フォーム / CTA
   ============================================ */

.futon-flow__step-text a {
    color: inherit;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.futon-flow__step-text a:hover {
    color: var(--color-primary-dark);
}

.futon-entry-banner {
    padding: 40px 20px;
    background: linear-gradient(135deg, #fff8ee 0%, #fff3dc 100%);
    border-top: 1px solid #f0e2c8;
    border-bottom: 1px solid #f0e2c8;
}

.futon-entry-banner__inner {
    max-width: 640px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    text-align: center;
}

.futon-entry-banner__text {
    margin: 0;
    font-size: clamp(1rem, 0.9rem + 0.5vw, 1.125rem);
    font-weight: 700;
    color: var(--color-primary-dark);
    line-height: 1.7;
}

.futon-entry-banner__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 32px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--color-accent) 0%, #f8bc55 100%);
    color: var(--color-white);
    font-size: 1.0625rem;
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 6px 20px rgba(245, 166, 35, 0.45);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.futon-entry-banner__btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(245, 166, 35, 0.55);
    color: var(--color-white);
}

.futon-entry {
    background: linear-gradient(160deg, var(--color-primary-dark) 0%, #004a7c 55%, #003558 100%);
    padding: 56px 20px 72px;
    position: relative;
    overflow: hidden;
}

.futon-entry::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 80% 50% at 50% -20%, rgba(255, 255, 255, 0.12), transparent);
    pointer-events: none;
}

.futon-entry__inner {
    position: relative;
    z-index: 1;
    max-width: 720px;
    margin: 0 auto;
}

.futon-entry__en {
    margin: 0 0 8px;
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    color: rgba(255, 255, 255, 0.85);
    text-align: center;
}

.futon-entry__title {
    margin: 0 0 12px;
    font-size: clamp(1.5rem, 1rem + 2.5vw, 2.125rem);
    font-weight: 800;
    color: #fff;
    text-align: center;
    letter-spacing: 0.04em;
    line-height: 1.4;
}

.futon-entry__sub {
    margin: 0 0 24px;
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.92);
    text-align: center;
    line-height: 1.7;
}

.futon-entry__price-chip {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 12px;
    margin-bottom: 24px;
}

.futon-entry__price-chip span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.28);
    color: #fff;
    font-size: 0.8125rem;
    font-weight: 700;
}

.futon-entry__price-chip i {
    color: var(--color-accent);
}

.futon-entry__tel-box {
    max-width: 440px;
    margin: 0 auto 28px;
    padding: 18px 20px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.28);
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-align: center;
}

.futon-entry__tel-label {
    color: #fff;
    font-size: 0.875rem;
    font-weight: 600;
}

.futon-entry__tel-num {
    font-size: clamp(2rem, 1.4rem + 2.5vw, 2.5rem);
    font-weight: 800;
    color: #fff;
    letter-spacing: 0.02em;
    line-height: 1.1;
}

.futon-entry__tel-num:hover {
    color: #fff;
    opacity: 0.92;
}

.futon-entry__tel-note {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.8);
}

.ft-form__hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.ft-form {
    max-width: 640px;
    margin: 0 auto;
    text-align: left;
    background: #fff;
    border-radius: 20px;
    padding: 28px 24px 32px;
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.22);
    color: var(--color-text, #333);
    display: flex;
    flex-direction: column;
}

.ft-form__head {
    text-align: center;
    padding-bottom: 20px;
    margin-bottom: 4px;
    border-bottom: 1px solid #e8f0f5;
}

.ft-form__head-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0 0 10px;
    padding: 6px 14px;
    background: linear-gradient(135deg, #fff4eb 0%, #ffe8d6 100%);
    border: 1px solid #ffc9a3;
    border-radius: 999px;
    font-size: 0.8125rem;
    font-weight: 800;
    color: #c2410c;
}

.ft-form__head-badge i {
    color: var(--color-accent);
}

.ft-form__head-lead {
    margin: 0;
    font-size: 0.875rem;
    color: #5a6b75;
    line-height: 1.6;
}

.ft-form__section {
    padding: 22px 0;
    border-bottom: 1px solid #edf2f7;
}

.ft-form__section:last-of-type {
    border-bottom: none;
}

.ft-form__section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 18px;
    font-size: 1rem;
    font-weight: 800;
    color: var(--color-primary-dark);
    letter-spacing: 0.02em;
}

.ft-form__section-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: #fff;
    font-size: 0.8125rem;
    font-weight: 800;
    flex-shrink: 0;
}

.ft-form__section-body {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.ft-form__date-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.ft-form fieldset {
    margin: 0;
    padding: 0;
    border: none;
}

.ft-form legend {
    display: block;
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 8px;
    line-height: 1.45;
}

.ft-form__field-note {
    margin: -4px 0 10px;
    font-size: 0.8125rem;
    color: #64748b;
    line-height: 1.5;
}

.ft-form__radios {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ft-form__radio,
.ft-form__check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 14px 16px;
    border: 2px solid #e2ecf3;
    border-radius: 12px;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.ft-form__radio:hover,
.ft-form__check:hover {
    border-color: #b8d4e8;
    background: #f8fbfd;
}

.ft-form__radio:has(input:checked),
.ft-form__check:has(input:checked) {
    border-color: var(--color-primary);
    background: #f0f9ff;
}

.ft-form__radio span,
.ft-form__check span {
    line-height: 1.5;
}

.ft-form__radio input[type="radio"],
.ft-form__check input[type="checkbox"],
.ft-form__terms-agree input[type="checkbox"] {
    margin-top: 4px;
    flex-shrink: 0;
    width: 1.125rem;
    height: 1.125rem;
    accent-color: var(--color-primary-dark);
}

.ft-form__field {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.ft-form__field > label {
    display: block;
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 8px;
    line-height: 1.45;
}

.ft-form__req {
    background: var(--color-accent);
    color: #fff;
    font-size: 0.6875rem;
    padding: 2px 8px;
    border-radius: 4px;
    margin-left: 4px;
    font-weight: 700;
    vertical-align: middle;
}

.ft-form__opt {
    background: #b9c5cf;
    color: #fff;
    font-size: 0.6875rem;
    padding: 2px 8px;
    border-radius: 4px;
    margin-left: 4px;
    font-weight: 700;
    vertical-align: middle;
}

.ft-form__field input:not([type="radio"]):not([type="checkbox"]),
.ft-form__field select,
.ft-form__field textarea {
    width: 100%;
    border: 2px solid #e2ecf3;
    border-radius: 10px;
    padding: 13px 15px;
    font-size: 1rem;
    font-family: inherit;
    color: var(--color-text);
    background: #fff;
    -webkit-appearance: none;
    appearance: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.ft-form__field input[type="date"] {
    min-height: 3rem;
}

.ft-form__field select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath fill='%230068A9' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 12px;
    padding-right: 36px;
}

.ft-form__field textarea {
    resize: vertical;
    min-height: 100px;
}

.ft-form__field input:focus,
.ft-form__field select:focus,
.ft-form__field textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(0, 180, 230, 0.2);
}

.ft-form__terms-title {
    margin: 0 0 10px;
    font-size: 0.9375rem;
    font-weight: 700;
}

.ft-form__terms-body {
    max-height: 220px;
    overflow-y: auto;
    padding: 14px 16px;
    margin-bottom: 14px;
    border: 1px solid #e2ecf3;
    border-radius: 10px;
    background: #f8fafc;
    font-size: 0.8125rem;
    line-height: 1.75;
    color: #475569;
    white-space: pre-line;
}

.ft-form__terms-agree {
    margin-top: 4px;
}

.ft-form__field--error input:not([type="radio"]):not([type="checkbox"]),
.ft-form__field--error select,
.ft-form__field--error textarea,
.ft-form__fieldset--error input:not([type="radio"]):not([type="checkbox"]) {
    border-color: #e0670f;
}

.ft-form__error {
    margin: 6px 0 0;
    font-size: 0.8125rem;
    font-weight: 700;
    color: #c2410c;
}

.ft-form__submit-area {
    margin-top: 8px;
    padding-top: 24px;
    border-top: 1px solid #edf2f7;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.ft-form__status {
    margin: 0;
    padding: 14px 18px;
    border-radius: 12px;
    font-size: 0.9375rem;
    font-weight: 700;
    text-align: center;
    line-height: 1.6;
}

.ft-form__status--error {
    background: #fff3f0;
    color: #9a3412;
    border: 1px solid #f5c4b8;
}

.ft-form__status[hidden],
.ft-form__complete[hidden] {
    display: none !important;
}

.ft-form__complete {
    padding: 22px 20px;
    border-radius: 14px;
    border: 2px solid #9ed4b3;
    background: linear-gradient(135deg, #f2fbf6 0%, #e8f8ef 100%);
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-align: center;
}

.ft-form__complete-title {
    margin: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 1.25rem;
    font-weight: 800;
    color: #1a6b3a;
}

.ft-form__complete-title i {
    color: #1f9d62;
}

.ft-form__complete-text,
.ft-form__complete-note {
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.7;
    color: #27573c;
}

.ft-form__submit-actions {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.ft-form__submit-actions[hidden] {
    display: none;
}

.ft-form__trust {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 16px;
}

.ft-form__trust li {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8125rem;
    font-weight: 700;
    color: #2d5a3e;
}

.ft-form__trust i {
    color: #22a06b;
}

.ft-form__submit {
    width: 100%;
    margin: 0;
    border: none;
    cursor: pointer;
    background: linear-gradient(135deg, var(--color-accent) 0%, #f8bc55 100%);
    color: #fff;
    font-size: 1.25rem;
    font-weight: 800;
    padding: 20px 24px;
    border-radius: 999px;
    box-shadow: 0 10px 24px rgba(245, 166, 35, 0.45);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.ft-form__submit:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(245, 166, 35, 0.55);
}

.ft-form__submit:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
}

.ft-form__privacy {
    margin: 0;
    text-align: center;
    font-size: 0.75rem;
    color: #7a8b96;
    line-height: 1.5;
}

.ft-form-success-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: grid;
    place-items: center;
    padding: 20px;
}

.ft-form-success-modal[hidden] {
    display: none;
}

.ft-form-success-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 40, 70, 0.72);
    backdrop-filter: blur(2px);
}

.ft-form-success-modal__panel {
    position: relative;
    z-index: 1;
    width: min(100%, 440px);
    padding: 32px 28px 28px;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.28);
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 14px;
    animation: ftFormModalIn 0.35s ease;
}

@keyframes ftFormModalIn {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.97);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

.ft-form-success-modal__icon {
    margin: 0;
    font-size: 3rem;
    color: #1f9d62;
    line-height: 1;
}

.ft-form-success-modal__title {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 800;
    color: #1a6b3a;
}

.ft-form-success-modal__text,
.ft-form-success-modal__note {
    margin: 0;
    font-size: 0.9375rem;
    line-height: 1.8;
    color: #334155;
}

.ft-form-success-modal__note a {
    color: var(--color-primary-dark);
    font-weight: 700;
    text-decoration: underline;
}

.ft-form-success-modal__close {
    margin-top: 4px;
    width: 100%;
    border: none;
    border-radius: 999px;
    padding: 14px 20px;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
}

body.ft-form-modal-open {
    overflow: hidden;
}

@media (min-width: 600px) {
    .ft-form__date-row {
        grid-template-columns: 1fr 1fr;
    }
}

@media (min-width: 768px) {
    .ft-form {
        max-width: 680px;
        padding: 36px 40px 40px;
    }

    .ft-form__section {
        padding: 32px 0;
    }

    .ft-form__section-body {
        gap: 28px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ft-form-success-modal__panel {
        animation: none;
    }
}
