@charset "UTF-8";
/* 
 * 霎ｲ讖溷�繝ｬ繝ｳ繧ｿ繝ｫ繧ｵ繝ｼ繝薙せ - Form Page Specific Style
 * 蜈ｱ騾壹� style.css 縺ｨ菴ｵ逕ｨ縺励※菴ｿ逕ｨ縺励∪縺吶�
 */

/* --- Content Sheet (Form Wrapper) --- */
.content-sheet {
    padding: 60px 0;
    width: 100%;
    background: #fff;
    position: relative;
    z-index: 1;
}

/* Clearfix for floated form elements */
.content-sheet::after,
.container::after,
form::after,
.mfp_rows::after {
    content: "";
    display: table;
    clear: both;
}

/* 繝輔か繝ｼ繝�荳矩Κ縺ｮ騾｣邨｡蜈医Γ繝�そ繝ｼ繧ｸ繧剃ｸｭ螟ｮ蟇�○ */
.mfp-footer-msg {
    float: none !important;
    width: 100% !important;
    text-align: center !important;
    border: none !important;
    margin: 20px auto !important;
}

/* --- Mailform Modernization (Premium Restyle) --- */

/* 1. Container & List Structure */
form#mailformpro dl.mailform {
    border: none;
    padding: 20px 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* 2. Responsive Layout (Flexbox) */
@media (min-width: 769px) {
    form#mailformpro dl.mailform dt.mfp {
        float: none;
        width: 100%;
        clear: both;
        text-align: left;
        border: none;
        padding: 0 0 10px 0;
        font-size: 1.1rem;
        font-weight: 700;
        color: var(--clr-text-main);
        display: flex;
        align-items: center;
        gap: 10px;
        position: relative;
    }

    form#mailformpro dl.mailform dd.mfp {
        border: none;
        padding: 0;
        margin: 0;
        width: 100%;
    }

    form#mailformpro dl.mailform dd.mfp .mfp_rows {
        padding: 0;
    }
}

@media (max-width: 768px) {
    form#mailformpro dl.mailform dt.mfp {
        float: none;
        width: 100%;
        text-align: left;
        border: none;
        padding: 0 0 10px 0;
        font-weight: 700;
        font-size: 1rem;
    }

    form#mailformpro dl.mailform dd.mfp {
        border: none;
        padding: 0 0 30px 0;
        margin: 0;
    }
}

/* 3. Label Badges */
.must {
    background-image: none !important;
    background-color: var(--clr-accent) !important;
    border: none !important;
    box-shadow: none !important;
    text-shadow: none !important;
    color: #fff !important;
    font-size: 11px !important;
    padding: 4px 8px !important;
    border-radius: 4px !important;
    margin: 0 10px 0 0 !important;
    float: none !important;
    display: inline-block !important;
    font-weight: 700 !important;
    vertical-align: middle !important;
    letter-spacing: 0.05em;
}

.optionally {
    background-image: none !important;
    background-color: #888 !important;
    border: none !important;
    box-shadow: none !important;
    text-shadow: none !important;
    padding: 4px 8px !important;
    border-radius: 4px !important;
    font-size: 11px !important;
    margin: 0 10px 0 0 !important;
}

/* 4. Input Fields Styling */
input[type="text"],
input[type="email"],
input[type="tel"],
textarea,
select {
    width: 100% !important;
    max-width: 100% !important;
    padding: 16px 20px !important;
    font-size: 16px !important;
    color: var(--clr-text-main) !important;
    background-color: #f9f9f9 !important;
    border: 1px solid #ddd !important;
    border-radius: 8px !important;
    transition: all 0.3s var(--ease-smooth) !important;
    outline: none !important;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02) !important;
    font-family: var(--font-main) !important;
    box-sizing: border-box !important;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
textarea:focus,
select:focus {
    background-color: #fff !important;
    border-color: var(--clr-accent) !important;
    box-shadow: 0 0 0 4px rgba(230, 0, 18, 0.1) !important;
}

textarea {
    min-height: 200px !important;
    line-height: 1.6 !important;
}

input[type="radio"],
input[type="checkbox"] {
    transform: scale(1.2);
    margin-right: 8px !important;
    accent-color: var(--clr-accent);
}

form#mailformpro label {
    font-size: 16px !important;
    padding: 10px 20px !important;
    margin: 0 10px 10px 0 !important;
    border: 1px solid #eee !important;
    border-radius: 50px !important;
    background: #fff;
    cursor: pointer;
    transition: 0.3s;
    display: inline-flex !important;
    align-items: center;
}

form#mailformpro label:hover {
    background: #f5f5f5;
    border-color: #ccc !important;
}

form#mailformpro label.mfp_checked {
    background-color: rgba(230, 0, 18, 0.05) !important;
    border-color: var(--clr-accent) !important;
    color: var(--clr-accent) !important;
    font-weight: 700;
    box-shadow: none !important;
}

/* 5. Submit Button Area */
div.mfp_buttons {
    padding: 60px 0;
    text-align: center;
}

div.mfp_buttons button {
    background: linear-gradient(135deg, var(--clr-accent), #880000) !important;
    border: none !important;
    color: #fff !important;
    font-size: 1.2rem !important;
    font-weight: 700 !important;
    padding: 18px 40px !important;
    border-radius: 50px !important;
    cursor: pointer !important;
    box-shadow: 0 10px 25px rgba(230, 0, 18, 0.3) !important;
    transition: all 0.4s cubic-bezier(0.2, 1, 0.3, 1) !important;
    letter-spacing: 0.1em;
    min-width: 280px;
    max-width: 100%;
    position: relative;
    overflow: hidden;
    margin: 10px 0 !important;
    text-shadow: none !important;
}

/* 320px 讌ｵ蟆冗判髱｢蜷代￠隱ｿ謨ｴ */
@media (max-width: 400px) {
    div.mfp_buttons button {
        min-width: auto !important;
        width: 100% !important;
        padding: 15px 20px !important;
        font-size: 1.1rem !important;
    }
}

div.mfp_buttons button:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(230, 0, 18, 0.4) !important;
}

div.mfp_buttons button::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: 0.5s;
}

div.mfp_buttons button:hover::after {
    left: 100%;
}

/* 鬆�岼蜀��髢馴囈隱ｿ謨ｴ */
dl.mailform dt {
    border-top: none !important;
    padding: 20px 0 0px 0 !important;
    font-size: 15px !important;
    text-align: left !important;
    width: 100% !important;
}

dl.mailform dd {
    border-top: none !important;
    padding: 5px 0 15px 0 !important;
    margin: 0 !important;
}

/* 遒ｺ隱咲判髱｢縺ｮ繝懊ち繝ｳ隱ｿ謨ｴ */
button.mfp_next,
button.mfp_prev,
#mfp_buttons_confirm button {
    background: linear-gradient(135deg, var(--clr-accent), #880000) !important;
    border: none !important;
    color: #fff !important;
    font-weight: 700 !important;
    padding: 12px 30px !important;
    border-radius: 50px !important;
    cursor: pointer !important;
    transition: 0.3s !important;
    text-shadow: none !important;
    -webkit-text-stroke: 0 !important;
    min-width: 200px;
    margin: 8px 0 !important;
}

@media (max-width: 400px) {

    button.mfp_next,
    button.mfp_prev,
    #mfp_buttons_confirm button {
        min-width: auto !important;
        width: 100% !important;
    }
}

/* 6. Error & Messages */
div.mfp_err {
    color: var(--clr-accent) !important;
    font-weight: 700;
    background: url(../service_form/mfp.statics/_images/mfp_error.gif) no-repeat 0px 4px !important;
    padding-left: 20px !important;
    margin-top: 5px !important;
    display: block;
}

/* 7. Column Grid Reset */
.mfp_rows .mfp_col10,
.mfp_rows .mfp_col6,
.mfp_rows .mfp_col5,
.mfp_rows .mfp_col3 {
    float: none !important;
    width: 100% !important;
    padding: 0 !important;
}

/* Address Fields in one row */
.mfp input[name="驛ｵ萓ｿ逡ｪ蜿ｷ"],
.mfp input[data-address] {
    width: auto !important;
    min-width: 200px;
    display: inline-block !important;
}

select[name="驛ｽ驕灘ｺ懃恁"] {
    width: auto !important;
    min-width: 200px;
    display: inline-block !important;
    margin-bottom: 15px;
}

/* --- Support Mail Card --- */
.mfp-footer-card {
    margin: 40px auto 20px !important;
    padding: 30px 20px !important;
    background: #f8f8f8 !important;
    border: 1px solid #ddd !important;
    border-left: 6px solid #ccc !important;
    border-radius: 0 12px 12px 0;
    text-align: center;
    max-width: 100% !important;
    clear: both;
}

.mfp-footer-card p {
    margin-bottom: 20px !important;
    font-size: 14px;
    font-weight: 400;
    color: #666;
    line-height: 1.6;
}

.mfp-footer-card .mail-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: #777 !important;
    color: #fff !important;
    padding: 12px 25px;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    transition: 0.3s;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1) !important;
}

.mfp-footer-card .mail-btn:hover {
    transform: translateY(-2px);
    background: #555 !important;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15) !important;
}

.mfp-footer-card .mail-btn i {
    font-size: 1.1rem;
}

/* --- Additional Server-side Fixes --- */
@media (min-width: 769px) and (max-width: 1024px) {
    .content-sheet {
        margin-right: 80px !important;
        width: calc(100% - 80px) !important;
    }
}

@media (max-width: 768px) {
    .content-sheet {
        margin-right: 0 !important;
        width: 100% !important;
        padding-right: 0 !important;
        /* 蟾ｦ蜿ｳ荳榊插陦｡縺ｮ隗｣豸� */
    }
}

/* 468px莉･荳具ｼ域･ｵ蟆上せ繝槭��会ｼ壼ｷｦ蜿ｳ縺ｮ菴咏區繧偵＆繧峨↓隧ｰ繧√√さ繝ｳ繝�Φ繝�ｒ繧医ｊ荳譚ｯ縺ｫ蠎�￡繧� */
@media (max-width: 467px) {
    .container {
        padding: 0 10px !important;
        /* 20px縺九ｉ10px縺ｸ縲ょｷｦ蜿ｳ荳譚ｯ縺ｫ */
    }
}

dl.mailform dt,
dl.mailform dd,
.mfp_colored,
.mfp_achroma,
tr.mfp_colored,
tr.mfp_achroma {
    background-color: #ffffff !important;
    background-image: none !important;
}

/* --- Thanks Page Styles (Moved from thanks.html) --- */
.thanks-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
    padding: 60px 40px;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    border-top: 6px solid var(--clr-accent);
}

.thanks-icon {
    font-size: 4rem;
    color: #2e7d32;
    /* 謌仙粥繧定｡ｨ縺咏ｷ・*/
    margin-bottom: 25px;
    display: inline-block;
    animation: scaleIn 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes scaleIn {
    from {
        transform: scale(0);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.thanks-title {
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--clr-text-main);
    margin-bottom: 20px;
    letter-spacing: 0.05em;
}

.thanks-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 40px;
}

.thanks-steps {
    background: #f9f9f9;
    padding: 30px;
    border-radius: 12px;
    text-align: left;
    margin-bottom: 40px;
}

.thanks-steps h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--clr-text-main);
    display: flex;
    align-items: center;
    gap: 10px;
}

.thanks-steps ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.thanks-steps li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 10px;
    font-size: 0.95rem;
    color: #666;
}

.thanks-steps li::before {
    content: '笨・;
 position: absolute;
    left: 0;
    color: var(--clr-accent);
    font-weight: 900;
}

.back-btn-wrap {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.btn-home {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: var(--clr-deep-gray);
    color: #fff;
    padding: 16px 35px;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    transition: 0.3s;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.btn-home:hover {
    transform: translateY(-3px);
    background: #333;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    color: #fff;
}

@media (max-width: 768px) {
    .thanks-card {
        padding: 40px 15px;
        /* 20px縺九ｉ15px縺ｸ蜑頑ｸ帙ょｷｦ蜿ｳ荳譚ｯ縺ｫ */
    }

    .thanks-title {
        font-size: 1.5rem;
    }

    .btn-home {
        width: 100%;
        justify-content: center;
    }
}

/* 468px莉･荳具ｼ壹き繝ｼ繝牙・縺ｮ菴咏區繧偵＆繧峨↓隧ｰ繧√√ｈ繧雁ｷｦ蜿ｳ荳譚ｯ縺ｫ */
@media (max-width: 467px) {
    .thanks-card {
        padding: 30px 10px;
    }

    .thanks-text {
        font-size: 1rem;
    }
}

/* Sidebar Overlap Fix for form.html (768px ~ ) */
@media (min-width: 769px) {
    .content-sheet {
        padding-right: 60px;
        /* Accommodate fixed sidebar */
        box-sizing: border-box;
    }

    /* Override for thanks page (Restore Balance) */
    body.thanks-page .content-sheet {
        padding-right: 0;
    }

    /* Thanks page: Add symmetric padding to container to center content while avoiding sidebar */
    body.thanks-page .container {
        padding-left: 80px;
        /* 20px + 60px(Balance) */
        padding-right: 80px;
        /* 20px + 60px(Sidebar Safety) */
    }
}