@charset "UTF-8";

/* =========================================
   お問い合わせページ用CSS
   入力・確認・完了画面 統一デザイン版
========================================= */

.contact-section,
.contact-section * {
    box-sizing: border-box;
}

.contact-section {
    padding: 0 20px 80px;
    margin-top: -40px;
}

.contact-section .section-inner {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-section .page-header {
    width: 100%;
    margin: 0;
    padding: 0;
    text-align: left;
}

.contact-section .page-title {
    display: block;
    width: 100%;
    margin: 0 0 20px;
    padding: 0 0 15px;
    border-bottom: 2px solid #F7D070;
    color: #84D2E5;
    font-size: 2.4rem;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: 0.05em;
}

.contact-desc {
    margin: 0 0 60px;
    color: #555;
    font-size: 1.1rem;
    line-height: 1.6;
}

.contact-section.is-confirm .contact-desc {
    margin-bottom: 42px;
}

.contact-section.is-complete {
    padding-bottom: 56px;
}

.contact-section.is-complete .contact-desc {
    margin-bottom: 42px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    width: 100%;
    background: #fff;
}

.form-group {
    display: flex;
    flex-direction: column;
    padding: 30px 0;
    border-bottom: 1px dashed #e0e0e0;
}

.form-group:last-of-type {
    padding-bottom: 50px;
    border-bottom: none;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    color: #333;
    font-size: 1.05rem;
    font-weight: bold;
}

.badge-required {
    padding: 3px 10px;
    border-radius: 4px;
    background-color: #F7D070;
    color: #333;
    font-size: 0.8rem;
    font-weight: bold;
    letter-spacing: 0.05em;
}

::placeholder {
    color: #bbb;
}

.input-area {
    width: 100%;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form select,
.contact-form textarea {
    box-sizing: border-box;
    width: 100%;
    padding: 16px 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: #fafafa;
    color: #333;
    font-family: inherit;
    font-size: 1.05rem;
    transition: border-color 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #84D2E5;
    background-color: #fff;
    box-shadow: 0 4px 15px rgba(132, 210, 229, 0.15);
}

.select-wrap {
    position: relative;
}

.contact-form select {
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
}

.select-wrap::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 20px;
    width: 0;
    height: 0;
    border-width: 7px 5px 0;
    border-style: solid;
    border-color: #888 transparent transparent;
    transform: translateY(-50%);
    pointer-events: none;
}

.contact-form textarea {
    resize: vertical;
    line-height: 1.8;
}

.submit-wrap {
    margin-top: 56px;
    text-align: center;
}

.btn-submit,
.btn-back,
.btn-link {
    min-height: 58px;
    border-radius: 999px;
    font-family: inherit;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
}

.btn-submit {
    min-width: 260px;
    padding: 17px 36px;
    border: none;
    background-color: #84D2E5;
    box-shadow: 0 6px 15px rgba(132, 210, 229, 0.3);
    color: #fff;
    font-size: 1.1rem;
    letter-spacing: 0.08em;
}

.btn-submit:hover,
.btn-submit:focus-visible {
    background-color: #72c1d4;
    box-shadow: 0 10px 20px rgba(132, 210, 229, 0.38);
    transform: translateY(-3px);
}

.btn-submit:focus-visible,
.btn-back:focus-visible,
.btn-link:focus-visible {
    outline: 3px solid rgba(132, 210, 229, 0.35);
    outline-offset: 3px;
}

.contact-error {
    max-width: 960px;
    margin: 0 auto 35px;
    padding: 20px 24px;
    border: 1px solid #f0b8b8;
    border-radius: 10px;
    background: #fff7f7;
    color: #b42318;
    line-height: 1.7;
}

.contact-error p {
    margin: 0 0 10px;
    font-weight: bold;
}

.contact-error ul {
    margin: 0;
    padding-left: 1.4em;
}

.contact-confirm-form {
    max-width: 980px;
    margin: 0 auto;
}

.confirm-box {
    padding: 38px 42px 42px;
    border: 1px solid #e4ecef;
    border-radius: 18px;
    background: #fbfdfe;
    box-shadow: 0 10px 28px rgba(43, 72, 83, 0.055);
}

.confirm-box h3 {
    display: flex;
    align-items: center;
    margin: 0 0 12px;
    color: #84D2E5;
    font-size: 1.65rem;
    font-weight: bold;
    line-height: 1.5;
    letter-spacing: 0.04em;
}

.confirm-box h3::before {
    content: "";
    width: 6px;
    height: 1.15em;
    margin-right: 12px;
    border-radius: 4px;
    background: #F7D070;
}

.confirm-lead {
    margin: 0 0 28px;
    color: #555;
    font-size: 1.03rem;
    line-height: 1.7;
}

.confirm-list {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    margin: 0;
    overflow: hidden;
    border: 1px solid #e4eaed;
    border-radius: 12px;
    background: #fff;
}

.confirm-list dt,
.confirm-list dd {
    box-sizing: border-box;
    min-height: 72px;
    padding: 21px 22px;
    border-bottom: 1px solid #e7ecef;
    line-height: 1.8;
}

.confirm-list dt {
    display: flex;
    align-items: center;
    background: #f2f9fb;
    color: #333;
    font-weight: bold;
}

.confirm-list dd {
    display: flex;
    align-items: center;
    min-width: 0;
    margin: 0;
    background: #fff;
    color: #3f4548;
    overflow-wrap: anywhere;
}

.confirm-list dt:last-of-type,
.confirm-list dd:last-of-type {
    border-bottom: none;
    align-items: flex-start;
}

.confirm-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-top: 38px;
    flex-wrap: wrap;
}

.confirm-actions .btn-submit,
.confirm-actions .btn-back {
    width: 260px;
    min-width: 260px;
}

.btn-back {
    padding: 16px 28px;
    border: 1px solid #d9e0e3;
    background-color: #fff;
    color: #4b5053;
    font-size: 1.02rem;
    letter-spacing: 0.05em;
}

.btn-back:hover,
.btn-back:focus-visible {
    border-color: #c5d0d5;
    background-color: #f6f8f9;
    transform: translateY(-3px);
}

.contact-complete {
    max-width: 820px;
    margin: 0 auto;
    padding: 48px 36px;
    border: 1px solid #e4ecef;
    border-radius: 18px;
    background: #fbfdfe;
    box-shadow: 0 10px 28px rgba(43, 72, 83, 0.055);
    text-align: center;
}

.contact-complete h3 {
    margin: 0 0 18px;
    color: #84D2E5;
    font-size: 1.8rem;
    letter-spacing: 0.05em;
}

.contact-complete p {
    margin: 0;
    color: #555;
    line-height: 1.9;
}

.contact-actions {
    margin-top: 34px;
}

.btn-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 250px;
    padding: 16px 32px;
    border: none;
    background-color: #84D2E5;
    box-shadow: 0 6px 15px rgba(132, 210, 229, 0.3);
    color: #fff;
    font-size: 1.05rem;
    letter-spacing: 0.06em;
    text-decoration: none;
}

.btn-link:hover,
.btn-link:focus-visible {
    background-color: #72c1d4;
    box-shadow: 0 10px 20px rgba(132, 210, 229, 0.38);
    transform: translateY(-3px);
}

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

@media screen and (min-width: 769px) {
    .form-group {
        flex-direction: row;
        align-items: flex-start;
    }

    .form-group label {
        width: 35%;
        margin-bottom: 0;
        padding-top: 15px;
    }

    .input-area {
        width: 65%;
    }
}

@media screen and (max-width: 900px) {
    .contact-confirm-form {
        max-width: 100%;
    }

    .confirm-box {
        padding: 34px 30px 36px;
    }

    .confirm-list {
        grid-template-columns: 190px minmax(0, 1fr);
    }
}

@media screen and (max-width: 768px) {
    .contact-section {
        padding: 0 16px 60px;
        margin-top: -20px;
    }

    .contact-section .page-title {
        font-size: 2rem;
    }

    .contact-desc {
        margin-bottom: 40px;
        font-size: 1rem;
    }

    .contact-section.is-confirm .contact-desc {
        margin-bottom: 30px;
    }

    .contact-section.is-complete {
        padding-bottom: 40px;
    }

    .contact-section.is-complete .contact-desc {
        margin-bottom: 30px;
    }

    .form-group {
        padding: 24px 0;
    }

    .confirm-box {
        padding: 24px 18px 22px;
        border-radius: 14px;
    }

    .confirm-box h3 {
        font-size: 1.4rem;
    }

    .confirm-lead {
        margin-bottom: 22px;
        font-size: 0.98rem;
    }

    .confirm-list {
        display: block;
        overflow: visible;
        border: none;
        border-radius: 0;
        background: transparent;
    }

    .confirm-list dt,
    .confirm-list dd {
        min-height: auto;
        border-bottom: none;
    }

    .confirm-list dt {
        padding: 15px 16px 6px;
        border: 1px solid #e4eaed;
        border-bottom: none;
        border-radius: 10px 10px 0 0;
        background: #f2f9fb;
        font-size: 0.95rem;
    }

    .confirm-list dd {
        margin-bottom: 12px;
        padding: 6px 16px 15px;
        border: 1px solid #e4eaed;
        border-top: none;
        border-radius: 0 0 10px 10px;
        background: #f2f9fb;
    }

    .confirm-actions {
        display: grid;
        grid-template-columns: 1fr;
        gap: 12px;
        margin-top: 28px;
    }

    .confirm-actions .btn-submit,
    .confirm-actions .btn-back,
    .btn-link {
        width: 100%;
        min-width: 0;
    }

    .submit-wrap {
        margin-top: 42px;
    }

    .contact-complete {
        padding: 34px 20px;
        border-radius: 14px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .btn-submit,
    .btn-back,
    .btn-link,
    .contact-form input,
    .contact-form select,
    .contact-form textarea {
        transition: none;
    }
}

@media screen and (max-width: 480px) {
    .contact-section {
        padding-right: 14px;
        padding-left: 14px;
    }

    .contact-section .page-title {
        font-size: 1.8rem;
    }
}
