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

/* Reset & Base Settings */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Outfit', 'Noto Sans JP', sans-serif;
    color: #000000;
    background-color: #ffffff;
    line-height: 1.6;
    font-size: 14px;
    -webkit-font-smoothing: antialiased;
}

a {
    color: #000000;
    text-decoration: underline;
    cursor: pointer;
    transition: color 0.2s ease;
}

a:hover {
    color: #BB0A30;
}

img {
    max-width: 100%;
    height: auto;
}

/* Common Layout */
#header {
    border-bottom: 1px solid #d7dadb;
    min-height: 80px;
    width: 100%;
    background-color: #ffffff;
}

#header .content {
    max-width: 1240px;
    margin: 0 auto;
    padding: 20px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#header .left {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

#header .right img {
    height: 16px;
    display: block;
}

#mainArea {
    max-width: 1240px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Lead & Titles */
h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 15px;
    letter-spacing: -0.5px;
}

.lead_txt {
    font-size: 14px;
    color: #666666;
    margin-bottom: 30px;
    line-height: 1.8;
}

/* Step Bar */
.status-bar {
    width: 100%;
    display: flex;
    list-style: none;
    margin-bottom: 50px;
    border: 1px solid #d7dadb;
}

.status-bar li {
    flex: 1;
    text-align: center;
    padding: 15px 10px;
    font-size: 14px;
    font-weight: 500;
    color: #b1b1b1;
    background-color: #f6f6f6;
    position: relative;
    transition: all 0.3s ease;
}

.status-bar li:not(:last-child)::after {
    content: "";
    position: absolute;
    right: -10px;
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
    width: 20px;
    height: 20px;
    background-color: #f6f6f6;
    border-top: 1px solid #d7dadb;
    border-right: 1px solid #d7dadb;
    z-index: 2;
}

.status-bar li.active {
    color: #ffffff;
    background-color: #000000;
}

.status-bar li.active::after {
    background-color: #000000;
}

/* Form Styles */
.formMainArea {
    border-top: 2px solid #000000;
    padding-top: 30px;
    margin-bottom: 50px;
}

.formMainArea h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 25px;
    border-left: 4px solid #BB0A30;
    padding-left: 15px;
}

.tableCellArea {
    display: flex;
    border-bottom: 1px solid #e5e5e5;
    padding: 25px 0;
    align-items: flex-start;
}

.tableCellArea:last-child {
    border-bottom: none;
}

.tableCellArea .left {
    width: 300px;
    min-width: 300px;
    font-weight: 700;
    font-size: 15px;
    padding-right: 20px;
}

.tableCellArea .right {
    flex-grow: 1;
}

/* Badges */
.required_mark2 {
    display: inline-block;
    padding: 2px 8px;
    background-color: #BB0A30;
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
    margin-left: 10px;
    vertical-align: middle;
}

.optional_mark2 {
    display: inline-block;
    padding: 2px 8px;
    background-color: #b1b1b1;
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
    margin-left: 10px;
    vertical-align: middle;
}

/* Inputs & Form Fields */
input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
    width: 100%;
    max-width: 480px;
    padding: 12px 16px;
    border: 1px solid #c0c0c0;
    font-size: 14px;
    font-family: inherit;
    outline: none;
    transition: all 0.2s ease;
    background-color: #ffffff;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
select:focus,
textarea:focus {
    border-color: #000000;
    box-shadow: 0 0 0 1px #000000;
}

/* Input error and highlighted backgrounds */
input.invalid,
select.invalid,
.invalid-wrapper {
    background-color: #FADBDA !important;
    border-color: #BB0A30 !important;
}

.error-message {
    color: #BB0A30;
    font-size: 12px;
    font-weight: 700;
    margin-top: 6px;
    display: flex;
    align-items: center;
}

.error-message::before {
    content: "!";
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 16px;
    height: 16px;
    background-color: #BB0A30;
    color: #ffffff;
    border-radius: 50%;
    margin-right: 6px;
    font-size: 11px;
}

/* Specialized Input Widths */
.btn_pref {
    display: inline-block;
    padding: 12px 24px;
    background-color: #000000;
    color: #ffffff;
    border: 1px solid #000000;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    vertical-align: middle;
    transition: all 0.2s ease;
    margin-left: 10px;
}

.btn_pref:hover {
    background-color: #333333;
    border-color: #333333;
}

.name-fields,
.tel-fields {
    display: flex;
    gap: 15px;
    align-items: center;
}

.name-fields input {
    max-width: 180px;
}

.tel-fields input {
    max-width: 100px;
    text-align: center;
}

/* Radio buttons & Checkboxes custom styling */
.radio-group,
.checkbox-group {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.custom-radio,
.custom-checkbox {
    position: relative;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    font-weight: 500;
    user-select: none;
    padding: 8px 16px;
    border: 1px solid #d7dadb;
    transition: all 0.2s ease;
}

.custom-radio:hover,
.custom-checkbox:hover {
    border-color: #000000;
}

.custom-radio input,
.custom-checkbox input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.radio-indicator,
.checkbox-indicator {
    width: 18px;
    height: 18px;
    border: 2px solid #b1b1b1;
    margin-right: 10px;
    display: inline-block;
    transition: all 0.2s ease;
}

.radio-indicator {
    border-radius: 50%;
}

.custom-radio input:checked ~ .radio-indicator {
    border-color: #000000;
    background-color: #000000;
    box-shadow: inset 0 0 0 3px #ffffff;
}

.custom-checkbox input:checked ~ .checkbox-indicator {
    border-color: #000000;
    background-color: #000000;
    position: relative;
}

.custom-checkbox input:checked ~ .checkbox-indicator::after {
    content: "";
    position: absolute;
    left: 4px;
    top: 1px;
    width: 5px;
    height: 9px;
    border: solid #ffffff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.custom-radio input:checked ~ span,
.custom-checkbox input:checked ~ span {
    font-weight: 700;
}

/* Social Login Box */
.social-plus-box {
    margin-top: 15px;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.social-plus-box img {
    height: 40px;
    cursor: pointer;
    transition: opacity 0.2s ease;
    border: 1px solid #e5e5e5;
}

.social-plus-box img:hover {
    opacity: 0.8;
}

/* Agreement Section */
.agreement-text-box {
    font-size: 13px;
    color: #333333;
    line-height: 1.8;
    margin-bottom: 25px;
}

.agreement-text-box p {
    margin-bottom: 10px;
}

/* Buttons Area */
.actions-area {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    border-top: 1px solid #d7dadb;
    padding-top: 40px;
}

.btn-primary,
.btn-secondary {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.btn-primary {
    background-color: #000000;
    color: #ffffff;
    padding: 18px 50px;
    min-width: 260px;
}

.btn-primary:hover {
    background-color: #333333;
}

.btn-secondary {
    background-color: #f2f2f2;
    color: #000000;
    border: 1px solid #d7dadb;
    padding: 18px 40px;
    min-width: 200px;
}

.btn-secondary:hover {
    background-color: #e5e5e5;
}

.btn-disabled {
    background-color: #b1b1b1 !important;
    color: #d8d8d8 !important;
    cursor: not-allowed;
}

/* Footer Banner */
.footer-banner {
    margin-top: 60px;
    text-align: center;
}

.footer-banner img {
    max-width: 100%;
    width: 1200px;
}

#footer {
    border-top: 1px solid #d7dadb;
    padding: 30px 20px;
    text-align: center;
    background-color: #ffffff;
    color: #666666;
    font-size: 12px;
}

/* Confirmation Page & Complete Page Specifics */
.confirm-value {
    font-size: 15px;
    font-weight: 500;
    word-break: break-all;
    line-height: 1.6;
}

.complete-card {
    text-align: center;
    padding: 80px 40px;
    background-color: #f9f9f9;
    border: 1px solid #e5e5e5;
    max-width: 800px;
    margin: 0 auto 50px;
}

.complete-icon {
    font-size: 48px;
    color: #BB0A30;
    margin-bottom: 20px;
}

.complete-card h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
}

.complete-card p {
    font-size: 15px;
    color: #666666;
    margin-bottom: 30px;
}



/* Info Tooltip Icon */
.info-tooltip-icon {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background-color: #e5e5e5;
    color: #666666;
    font-size: 11px;
    font-weight: bold;
    margin-left: 6px;
    cursor: help;
    vertical-align: middle;
}

/* Responsive CSS */
@media screen and (max-width: 900px) {
    .tableCellArea {
        flex-direction: column;
        align-items: stretch;
    }

    .tableCellArea .left {
        width: 100%;
        margin-bottom: 10px;
        padding-right: 0;
    }


}

@media screen and (max-width: 720px) {
    h2 {
        font-size: 24px;
    }

    #header .content {
        padding: 15px 15px;
    }

    #header .left {
        font-size: 18px;
    }

    #mainArea {
        padding: 20px 15px;
    }

    .status-bar {
        font-size: 11px;
    }

    .status-bar li {
        padding: 10px 5px;
        font-size: 11px;
    }

    .status-bar li:not(:last-child)::after {
        display: none;
    }

    .name-fields {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .name-fields input {
        max-width: none;
    }

    .tel-fields {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        gap: 8px;
    }

    .tel-fields input {
        flex: 1;
        min-width: 50px;
        max-width: 100px;
        text-align: center;
    }

    .tel-fields span {
        flex-shrink: 0;
    }

    .tel-fields span:last-child {
        width: 100%;
        margin-top: 4px;
        text-align: left;
    }

    .actions-area {
        flex-direction: column;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
    }


}
