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

/* ===== Sign Up Page — Mobile First ===== */

.section-signup {
    background: #f5f5f7;
    padding: 0 0 40px;
}

.signup-wrap {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 16px;
}

/* --- Top member button --- */
.signup-member-link {
    display: block;
    background: #fa4e16;
    color: #fff;
    text-align: center;
    padding: 10px 40px;
    font-family: sans-serif;
    font-size: 18px;
    font-weight: 700;
    font-style: normal;
    line-height: 1.4;
    letter-spacing: 0;
    border-radius: 50px;
    text-decoration: none;
    margin: 20px auto;
    width: 80%;
    box-sizing: border-box;
}

/* --- Content layout --- */
.signup-content {
    display: flex;
    flex-direction: column;
    gap: 0;
}

@media screen and (min-width: 768px) {
    .ttl-pages__icon {
        width: 22px;
        height: 22px;
    }
}

@media screen and (min-width: 768px) {
    .signup-content {
        flex-direction: row;
        align-items: flex-start;
        gap: 24px;
    }

    .signup-wrap {
        max-width: 1200px;
    }

    .signup-content .signup-card {
        flex: 1;
        min-width: 0;
    }

    .signup-content .app-member-banner {
        flex: 1;
        min-width: 0;
        margin-top: 0;
    }
}

/* --- Card --- */
.signup-card {
    background: #fff;
    padding: 24px 16px 32px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.13);
    align-items: center;    
    justify-content: center;
    
}
.signup-form {
    width: 295px; /* app baseline width */
    max-width: 420px; /* app baseline width; will stay centered */
    display: block;
    margin: 0 auto 30px;
}

.signup-card__title {
    font-size: 30px;
    font-family: Noto Sans JP;
    font-weight: 400;
    text-align: center;
    color: #111;
    margin: 0 0 24px;
}

/* --- Fields --- */
.signup-field {
    margin-bottom: 18px;
}

.signup-select--placeholder {
    color: #000;  
}

.signup-select--placeholder option {
    color: #000;  
}

.signup-select--placeholder:valid {
    color: #000;
}

.signup-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: sans-serif;
    font-size: 16px;
    font-weight: 700;
    font-style: normal;
    line-height: 1;
    letter-spacing: 0;
    color: #000000;
    margin-bottom: 6px;
    flex-wrap: wrap;
}

/* Badge 必須 */
.signup-badge {
    display: inline-block;
    background: #ff2626;
    font-family: Noto Sans JP;
    width: 36px;
    height: 16px;
    color: #fff;
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 10px;
    font-weight: 700;
    line-height: 18px;
    border-radius: 12px;
    padding: 0 8px;
    white-space: nowrap;
    vertical-align: middle;
    margin-left: 6px;
    box-sizing: border-box;
}

/* --- Inputs --- */
.signup-input {
    display: block;
    width: 100%;
    height: 48px;
    border: 2px solid #d0d5da;
    border-radius: 4px;
    padding: 10px 20px; /* Top 10px, Right 20px, Bottom 10px, Left 20px */
    font-size: 14px;
    color: #333;
    background: #fff;
    box-sizing: border-box;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.signup-input::placeholder {
    color: #bbb;
}

.signup-input:focus {
    border-color: #888;
}

.signup-input--full {
    width: 100%;
    background: #fff;
    border-radius: 4px;
    border: 2px solid #d0d5da;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
    width: 
}

/* --- Row (2 columns) --- */
.signup-row {
    display: flex;
    gap: 10px;
    justify-content: space-between; /* Flow horizontal, distribute inputs */
}

.signup-row .signup-input {
    flex: 1;
    min-width: 0;
    border-radius: 4px;
    border: 2px solid #d0d5da;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

/* --- Select --- */
.signup-select-wrap {
    flex: 1;
    position: relative;
}

.signup-select-wrap::after {
    content: '';
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-60%) rotate(45deg);
    width: 6px;
    height: 6px;
    border-right: 2px solid #555;
    border-bottom: 2px solid #555;
    pointer-events: none;
}

.signup-select {
    width: 100%;
    border: 2px solid #d0d5da;
    border-radius: 3px;
    padding: 0 32px 0 12px;
    font-size: 14px;
    color: #333;
    background: #fff;
    -webkit-appearance: none;
    appearance: none;
    box-sizing: border-box;
    outline: none;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.signup-select:focus {
    border-color: #888;
}

.signup-select--placeholder {
    color: #aaa !important;
}

.signup-label__sub {
    font-size: 16px;
    font-weight: 700;
    color: #000000;
}

/* --- Note --- */
.signup-note {
    font-size: 14px;
    color: #4B5763;
    margin: 5px 0 0;
    line-height: 1.5;
    font-weight: 700;
}

.signup-note--caution {
    color: #e63232;
    text-decoration: underline;
}

/* --- Radio --- */
.signup-row--radio {
    gap: 16px;
}


.signup-radio {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    flex: 1;
    padding-left: 12px;
}

.signup-radio input[type="radio"] {
    display: none;
}

.signup-radio__circle {
    width: 20px;
    height: 20px;
    border: 2px solid #ccc;
    border-radius: 50%;
    display: inline-block;
    position: relative;
    flex-shrink: 0;
    transition: border-color 0.2s;
}

.signup-radio input[type="radio"]:checked + .signup-radio__circle {
    border-color: #333;
}

.signup-radio input[type="radio"]:checked + .signup-radio__circle::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    background: #333;
    border-radius: 50%;
}

.signup-radio__text {
    font-size: 16px;
    color: #000000;
    font-weight: 500;
}

/* --- Postal code --- */
.signup-postal {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
}

.signup-input--postal3 {
    flex: 3;
    min-width: 0;
    width: 48px;
    border-radius: 4px;
    border: 2px solid #d0d5da;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.signup-input--postal4 {
    flex: 4;
    min-width: 0;
    width: 48px;
    border-radius: 4px;
    border: 2px solid #d0d5da;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.signup-postal__sep {
    font-size: 16px;
    color: #555;
    flex-shrink: 0;
    width: 30px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* --- Password --- */
.signup-input[type="password"]::-ms-reveal,
.signup-input[type="password"]::-ms-clear {
    display: none !important;
}

.signup-input[type="password"]::-webkit-credentials-auto-fill-button,
.signup-input[type="password"]::-webkit-strong-password-auto-fill-button {
    display: none !important;
    visibility: hidden !important;
}

.signup-password {
    position: relative;
}

.signup-password .signup-input--full {
    padding-right: 46px;
}

.signup-eye {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: none;
    align-items: center;
    justify-content: center;
    color: #000;
}

.signup-eye.is-visible {
    display: flex;
}

.signup-eye svg {
    width: 20px;
    height: 20px;
    stroke-width: 3;
}

.signup-eye .eye-on {
    display: none !important;
}

.signup-eye.is-shown .eye-off {
    display: none !important;
}

.signup-eye.is-shown .eye-on {
    display: block !important;
}

/* --- Password rules --- */
.signup-rules {
    list-style: none;
    padding: 0;
    margin: 8px 0 0;
}

.signup-rule {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: sans-serif;
    font-size: 14px;
    font-weight: 500;
    font-style: normal;
    line-height: 1;
    letter-spacing: 0;
    color: #000000;
    padding: 3px 0;
}

.signup-rule::before {
    content: '';
    display: inline-block;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    /* Default: gray circle with visible tick */
    border: 2px solid #D0D5DA;
    background-color: #D0D5DA;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 10px;
    flex-shrink: 0;
    box-sizing: border-box;
    transition: background 0.2s, border-color 0.2s;
}

.signup-rule.is-valid {
    color: #D0D5DA; /* dimmed when rule satisfied */
    font-weight: 500;
}

/* When a rule is satisfied we switch its circle to gray (primitive/color/gray/300)
   while keeping the check mark icon visible. */
.signup-rule.is-valid::before {
    border-color: #3fad57;
    background-color: #3fad57;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 10px;
}

/* ===== Tablet (480px+) ===== */
@media screen and (min-width: 480px) {
    .signup-wrap {
        padding: 0 24px;
    }

    .signup-member-link {
        font-size: 16px;
        padding: 13px 24px;
        margin: 24px auto;
    }

    .signup-card {
        padding: 28px 24px 36px;
    }

    .signup-card__title {
        font-size: 19px;
    }

    .signup-label {
        font-size: 14px;
    }

    .signup-input {
        height: 48px;
        font-size: 15px;
    }

    .signup-select {
        height: 48px;
        font-size: 15px;
    }

    .signup-rule {
        font-size: 13px;
    }

    .signup-rule::before {
        width: 18px;
        height: 18px;
    }

    /* Expand app-baseline fixed widths on tablet+ so web layouts can grow.
       Keep the mobile/app baseline (295px) intact on small screens. */
    .signup-form {
        width: auto;
        max-width: 720px;
        margin: 0 auto 30px;
        box-sizing: border-box;
    }
    .survey-checks {
        width: auto;
        gap: 12px;
    }
    .survey-checks--error {
        width: auto;
    }
    .app-member-banner__desc {
        max-width: 100%;
    }
    .app-member-banner__badges {
        width: auto;
        justify-content: flex-start;
    }
    .app-member-banner__guide-img {
        max-width: 100%;
    }
}

/* ===== Desktop (768px+) ===== */
@media screen and (min-width: 768px) {
    .section-signup {
        padding: 0 0 60px;
    }

    /* Allow two-column layout to expand on larger screens instead of constraining it small */
    .signup-wrap {
        max-width: 1200px;
        padding: 0 24px;
    }

    .signup-member-link {
        font-size: 18px;
        padding: 14px 20px;
        margin: 28px auto;
    }

    .signup-card {
        padding: 36px 32px 48px;
    }

    .signup-card__title {
        font-size: 20px;
        margin-bottom: 28px;
    }

    .signup-field {
        margin-bottom: 22px;
    }

    .signup-label {
        font-size: 14px;
        margin-bottom: 8px;
    }

    .signup-badge {
        font-size: 11px;
        width: 40px;
        height: 18px;
    }

    .signup-input {
        height: 48px;
        padding: 10px 20px;
        font-size: 15px;
        border-radius: 4px;
        min-width: 0; /* allow inputs to flex within expanded columns */
    }

    .signup-row {
        gap: 12px;
    }

    .signup-select {
        height: 48px;
        padding: 0 36px 0 14px;
        font-size: 15px;
    }

    .signup-note {
        font-size: 12px;
    }

    .signup-radio__text {
        font-size: 15px;
    }

    .signup-input--postal3 {
        flex: 3;
        min-width: 0;
        width: auto;
    }

    .signup-input--postal4 {
        flex: 4;
        min-width: 0;
        width: auto;
    }

    .signup-postal__sep {
        font-size: 18px;
    }

    .signup-rule {
        font-size: 13px;
        padding: 4px 0;
    }

    .signup-rule::before {
        width: 18px;
        height: 18px;
    }

    .signup-row--radio {
        gap: 160px;
    }

    /* Ensure the two columns share available space and can shrink as needed */
    .signup-content .signup-card,
    .signup-content .app-member-banner {
        flex-basis: 0;
    }
}

/* ===== Large Desktop (1024px+) ===== */
@media screen and (min-width: 1024px) {
    .signup-wrap {
        max-width: 1200px;
        padding: 0 32px;
    }

    .signup-card {
        padding: 48px 48px 60px;
    }

    .signup-card__title {
        font-size: 22px;
    }

    .signup-input {
        height: 48px;
        font-size: 16px;
    }

    .signup-select {
        height: 48px;
        font-size: 16px;
    }

    /* signup-card text */
    .signup-card__title { font-size: 26px; }
    .signup-label { font-size: 17px; }
    .signup-label__sub { font-size: 16px; }
    .signup-note { font-size: 14px; }
    .signup-radio__text { font-size: 17px; }
    .signup-rule { font-size: 15px; }
    .signup-submit__label { font-size: 18px; }

    /* survey text */
    .survey-title { font-size: 22px; }
    .survey-desc { font-size: 17px; }
    .survey-check__text { font-size: 17px; }
    .survey-check__num { font-size: 16px; }
    .survey-magazine__label { font-size: 17px; }
    .survey-radio__text { font-size: 17px; }
    .signup-agree__text { font-size: 17px; }

    /* app banner text */
    .app-member-banner__title { font-size: 34px; }
    .app-member-banner__desc { font-size: 17px; }

    .signup-row--radio {
        gap: 200px;
    }
}

/* ===== Survey Section ===== */
.survey-section {
    margin-top: 20px;
    background: #f5f5f7;
    border-radius: 4px;
    padding: 20px 16px 24px;
}

.survey-title {
    font-size: 25px;
    font-weight: 800;
    text-align: center;
    color: #111;
    margin: 0 0 10px;
}

.survey-desc {
    font-family: sans-serif;
    font-size: 16px;
    font-weight: 500;
    font-style: normal;
    line-height: 1.5;
    letter-spacing: 0;
    color: #333;
    margin: 0 0 16px;
}

.survey-desc__badge {
    margin-left: 8px;
    vertical-align: middle;
}

/* --- Checkboxes --- */
.survey-checks {
    /* Horizontal flow of survey items with wrapping */
    display: flex;
    width: 295px; /* app baseline width */
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px; /* horizontal gap between items */
    padding-left: 0;
}
.survey-checks--error {
    /* Do not show a red outline around survey groups; keep only
       the inline error text (survey-group__error) visible. */
    outline: none;
    border: none;
    width: auto;
    max-width: 100%;
    border-radius: 0;
    padding: 0;
}

/* Keep fixed app sizing inside in-app wrappers/webview markers */
body.is-app .survey-checks--error,
.is-app .survey-checks--error,
.app .survey-checks--error {
    width: 260px; /* app baseline width */
}

/* Each survey row as inline flex: checkbox | number | text */
.survey-check {
    /* grid: checkbox | number | text — fixed columns so wrapped lines align under text */
    display: grid;
    grid-template-columns: 32px 16px minmax(0, 1fr); /* checkbox (widened) | number | text */
    column-gap: 2px; /* tighter gap for compact alignment */
    row-gap: 8px;
    align-items: start;
    padding: 6px 6px;
    cursor: pointer;
    width: auto; /* allow horizontal flow */
    min-width: 160px; /* slightly smaller to wrap earlier on narrow screens */
}

.survey-check__input {
    display: none; /* shown by JS when checked */
    grid-column: 3 / -1; /* span the text column */
    width: 100%;
    box-sizing: border-box;
    padding: 10px 12px;
    border: 2px solid #d0d5da;
    border-radius: 4px;
    background: #fff;
    margin-top: 6px;
}

.survey-check input[type="checkbox"]:checked ~ .survey-check__input {
    display: block;
    width: 200px; /* app baseline width */
    height: 48px;
}

.survey-check input[type="checkbox"] {
    display: none;
}

.survey-check__box {
    width: 24px; /* Fixed width */
    height: 24px; /* Fixed height */
    border: 1px solid #d8d8d8; /* 1px border */
    border-radius: 3px; /* radius 3px */
    background: #fff;
    box-sizing: border-box;
    transition: background 0.15s, border-color 0.15s;
    position: relative;
    justify-self: center; /* center the box inside the wider column */
    align-self: center;
}

.survey-check input[type="checkbox"]:checked + .survey-check__box {
    background: #fa4e16;
    border-color: #fa4e16;
}

.survey-check input[type="checkbox"]:checked + .survey-check__box::after {
    content: '';
    position: absolute;
    top: 4px;
    left: 8px;
    width: 6px;
    height: 10px;
    border: 2px solid #fff;
    border-top: none;
    border-left: none;
    transform: rotate(45deg);
}

.survey-check__num {
    font-size: 15px;
    font-weight: 800;
    color: #222;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 17px;
    height: 20px;
    box-sizing: border-box;
    border-radius: 50%;
    background: transparent;
    margin: 0;
    justify-self: end; /* keep number close to the text column */
    transform: none; /* remove nudge so wrapped lines align correctly */
    align-self: center;
    padding-right: 0; /* bring number closer to text */
}

.survey-check__text {
    font-family: sans-serif;
    font-size: 16px;
    font-weight: 500;
    font-style: normal;
    line-height: 1.25; /* allow comfortable multi-line spacing */
    letter-spacing: 0;
    color: #000000;
    grid-column: 3 / -1; /* ensure text sits in the third column */
    display: block;
    width: 187px; /* fixed width to align wrapped lines, can be adjusted as needed */
    min-width: 0; /* allow text to shrink/wrap inside grid cell */
    margin: 0; /* remove manual offset — grid controls alignment */
    padding-left: 0;
    word-break: break-word;
}

/* --- Multiple survey questions --- */
.survey-group + .survey-group {
    margin-top: 20px;
}

.survey-group__error {
    margin-top: 8px;
    color: #FF2626;
    font-weight: 700;
    display: block;
}

/* --- Single choice (radio) survey options --- */
.survey-check input[type="radio"] {
    display: none;
}

.survey-check__box--radio {
    border-radius: 50%;
}

.survey-check input[type="radio"]:checked + .survey-check__box--radio {
    border-color: #fa4e16;
    background: #fff;
}

.survey-check input[type="radio"]:checked + .survey-check__box--radio::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #fa4e16;
}

.survey-check input[type="radio"]:checked ~ .survey-check__input {
    display: block;
    width: 200px; /* app baseline width */
    height: 48px;
}

/* --- Free-text only question --- */
.survey-free {
    width: 100%;
}

.survey-free__input {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 12px;
    border: 2px solid #d0d5da;
    border-radius: 4px;
    background: #fff;
    font-size: 16px;
}

/* --- メールマガジン --- */
.survey-magazine {
    margin-top: 20px;
}

.survey-magazine__label {
    font-family: sans-serif;
    font-size: 16px;
    font-weight: 500;
    font-style: normal;
    line-height: 1.5;
    letter-spacing: 0;
    color: #000000;
    margin: 0 0 12px;
}

/* Desktop override: stack survey items vertically */
@media screen and (min-width: 768px) {
    .survey-checks {
        flex-direction: column;
        flex-wrap: nowrap;
        gap: 12px;
    }

    .survey-check {
        width: 100%;
        min-width: 0;
        margin-right: 0;
    }
}

.survey-radios {
    display: flex;
    gap: 24px;
}

@media screen and (min-width: 768px) {
    .survey-radios {
        gap: 80px;
    }
}

@media screen and (min-width: 1024px) {
    .survey-radios {
        gap: 100px;
    }
}

.survey-radio {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding-left: 12px;
}

.survey-radio input[type="radio"] {
    display: none;
}

.survey-radio__circle {
    width: 20px;
    height: 20px;
    border: 2px solid #ccc;
    border-radius: 50%;
    display: inline-block;
    position: relative;
    flex-shrink: 0;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.survey-radio input[type="radio"]:checked + .survey-radio__circle {
    border-color: #fa4e16;
}

.survey-radio input[type="radio"]:checked + .survey-radio__circle::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    background: #fa4e16;
    border-radius: 50%;
}

.survey-radio__text {
    font-family: sans-serif;
    font-size: 16px;
    font-weight: 500;
    font-style: normal;
    line-height: 26px;
    letter-spacing: 0;
    color: #000000;
}

/* ===== Privacy Agree Checkbox ===== */
.signup-agree {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 0 12px;
    cursor: pointer;
}

.signup-agree input[type="checkbox"] {
    display: none;
}

.signup-agree__box {
    width: 24px;
    height: 24px;
    border: 2px solid #d8d8d8;
    border-radius: 4px;
    background: #fff;
    flex-shrink: 0;
    box-sizing: border-box;
    transition: background 0.15s, border-color 0.15s;
    position: relative;
}

.signup-agree input[type="checkbox"]:checked + .signup-agree__box {
    background: #fa4e16;
    border-color: #fa4e16;
}

.signup-agree input[type="checkbox"]:checked + .signup-agree__box::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 6px;
    width: 6px;
    height: 10px;
    border: 2px solid #fff;
    border-top: none;
    border-left: none;
    transform: rotate(45deg);
}

.signup-agree__text {
    font-family: sans-serif;
    font-size: 16px;
    font-weight: 500;
    font-style: normal;
    line-height: 1;
    letter-spacing: 0;
    color: #000000;
    flex: 1;
}

.signup-agree__link {
    color: #333;
    text-decoration: underline;
}

/* Error state for the privacy-agree checkbox when the user attempts to submit without checking it */
.signup-agree--error .signup-agree__box {
    border: 2px solid #FF2626;
    border-radius: 3px;
    background: #fff;
}

.signup-agree__error {
    font-family: semantic/fontfarmily/family-sans;
    font-weight: 700;
    font-style: bold;
    font-size: 14px;
    line-height: 100%;
    letter-spacing: 0%;
    color: #FF2626;
    margin-bottom: 20px;
}

/* ===== Submit Button ===== */
.signup-submit {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    width: 80%;
    margin-left: auto;
    margin-right: auto;
    height: 60px;
    background: #111;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    margin-top: 4px;
    margin-bottom: 24px;
    letter-spacing: 0.03em;
    transition: opacity 0.2s;
    box-sizing: border-box;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}

.signup-submit:disabled {
    background: #000000;
    cursor: not-allowed;
    opacity: 1;
}

.signup-submit:active:not(:disabled) {
    opacity: 0.8;
}

.signup-submit__label {
    font-family: sans-serif;
    font-size: 16px;
    font-weight: 500;
    font-style: normal;
    line-height: 26px;
    letter-spacing: 0;
}

.signup-submit__arrow {
    position: absolute;
    right: 20px;
    display: flex;
    align-items: center;
}

@media screen and (min-width: 768px) {
    .survey-title {
        font-size: 22px;
    }

    .survey-desc,
    .survey-magazine__label {
        font-size: 14px;
    }

    .survey-check__text,
    .survey-radio__text {
        font-size: 15px;
    }

    .signup-agree__text {
        font-size: 15px;
    }

    .signup-submit {
        height: 60px;
        font-size: 17px;

    }
}

/* ===== App Member Banner ===== */
.app-member-banner {
    background: #fff;
    text-align: center;
    justify-content: center;
    padding: 32px 16px 36px;
    margin-top: 32px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.10);
}

.app-member-banner__title {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 30px;
    font-weight: 400;
    font-style: normal;
    line-height: 1.2;
    letter-spacing: 0;
    text-align: center;
    color: #000000;
    margin: 0 0 14px;
}

.app-member-banner__desc {
    font-family: sans-serif;
    font-size: 16px;
    width: 100%;
    max-width: 295px; /* app baseline */
    font-weight: 500;
    font-style: normal;
    line-height: 1.2;
    letter-spacing: 0;
    color: #000000;
    margin: 0 0 20px;
    text-align: left;
    font-weight: 550;
}

.app-member-banner__badges {
    display: flex;
    width: auto; /* allow fluid sizing by default */
    gap: 10px;
    justify-content: flex-start;
    margin-left: 15px;
}

/* Preserve fixed sizing when rendered inside the in-app webview/container */
body.is-app .app-member-banner__badges,
.is-app .app-member-banner__badges,
.app .app-member-banner__badges {
    width: 295px; /* app baseline width */
    justify-content: center;
    margin-left: 5px;
}

.app-member-banner__badge {
    display: block;
    height: 52px;
}

.app-member-banner__badge img {
    display: block;
}

.app-member-banner__badge img[alt="Google Play で手に入れよう"] {
    width: 150px;
    height: 45px;
}

.app-member-banner__badge img[alt="App Store からダウンロード"] {
    width: 120px;
    height: 44.5px;
}

@media screen and (min-width: 768px) {
    .app-member-banner__badge img[alt="Google Play で手に入れよう"],
    .app-member-banner__badge img[alt="App Store からダウンロード"] {
        width: 200px;
        height: 60px;
    }
}

.app-member-banner__guides {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 20px;
}

.app-member-banner__guide-img {
    width: 100%;
    max-width: 295px; /* app baseline width */
    height: auto;
    display: block;
    text-align: center;
    margin: 0 auto;
    object-fit: contain;
}

/* App-mode specific sizing: keep web as-is, apply fixed size only inside
   an in-app wrapper/body class. Add common class variations to increase
   chance of matching the app webview environment. */
body.is-app .app-member-banner__guide-img,
body.app .app-member-banner__guide-img,
.is-app .app-member-banner__guide-img,
.app .app-member-banner__guide-img {
    /* keep app-style sizing when host marks app mode */
    max-width: 295px;
    width: 100%;
    height: auto;
    object-fit: cover;
}

.app-member-banner__more {
    margin-top: 30px;
    margin-bottom: 0;
    text-decoration: none;
    width: 260px;
}

.app-member-banner__more .signup-submit__label {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 16px;
    font-weight: 500;
    font-style: normal;
    line-height: 26px;
    letter-spacing: 0;
}

@media screen and (min-width: 480px) {
    .app-member-banner {
        padding-left: 24px;
        padding-right: 24px;
    }
}

@media screen and (min-width: 1024px) {
    .app-member-banner {
        padding-left: 48px;
        padding-right: 48px;
    }
}

/* Make guide image expand on larger screens so two-column layout fills available space */
@media screen and (min-width: 768px) {
    .app-member-banner__guide-img {
        max-width: 100%;
        height: auto;
        object-fit: contain;
    }
}

@media screen and (min-width: 1024px) {
    .app-member-banner__guide-img {
        max-width: 720px; /* allow larger illustrative images on very wide screens */
    }
}

/* Make app-member-banner description expand on larger screens while keeping app baseline */
@media screen and (min-width: 768px) {
    .app-member-banner__desc {
        max-width: 100%;
        width: 100%;
    }
}

@media screen and (min-width: 1024px) {
    .app-member-banner__desc {
        max-width: 720px;
    }
}

/* ===== Confirmation Popup ===== */
.signup-confirm-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 10000;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 70px 16px 16px;
    box-sizing: border-box;
    overflow-y: auto;
}

#signup-verify-overlay {
    padding-top: 120px;
}

#signup-sms-overlay {
    padding-top: 120px;
}

/* Center the change-email modal both vertically and horizontally
   across app / desktop / mobile modes and make it responsive. */
#signup-change-email-overlay {
    align-items: center;
    justify-content: center;
    padding: 16px; /* small breathing room on very small screens */
}

.signup-confirm-modal {
    background: #fff;
    border-radius: 12px;
    width: 100%;
    max-width: 420px;
    padding: 20px 20px 24px;
    box-sizing: border-box;
    position: relative;
    margin-bottom: 16px;
}

.signup-confirm-close {
    position: absolute;
    top: -9px;
    right: -9px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f1f3f5;
    border: none;
    color: #6b7680;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    padding: 0;
    flex-shrink: 0;
    z-index: 1;
}

.signup-confirm-title {
    font-family: sans-serif;
    text-align: center;
    font-size: 24px;
    font-weight: 700;
    font-style: normal;
    line-height: 1.5;
    letter-spacing: 0;
    text-align: center;
    color: #000000;
    margin: 0 0 16px;
    width: 295px;
}

.signup-confirm-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.signup-confirm-row {
    padding: 0;
}

.signup-confirm-label {
    font-family: sans-serif;
    font-size: 16px;
    font-weight: 700;
    font-style: normal;
    line-height: 1;
    letter-spacing: 0;
    color: #000000;
    margin-bottom: 6px;
}

.signup-confirm-value {
    font-size: 15px;
    color: #000000;
    font-weight: 600;
    width: 100%;
    box-sizing: border-box;
    height: auto;
    min-height: 50px;
    word-break: break-all;
    overflow-wrap: break-word;
    background: #f1f3f5;
    border-radius: 6px;
    padding: 16px 14px;
}

.signup-confirm-note {
    font-size: 14px;
    color: #4B5763;
    margin-top: 4px;
    font-weight: 700;
}

.signup-confirm-note__link {
    font-family: sans-serif;
    font-size: 14px;
    font-weight: 700;
    font-style: normal;
    line-height: 1;
    letter-spacing: 0;
    color: #e63232;
    text-decoration: underline;
}

.signup-confirm-survey {
    background: #f8f9fa;
    border-radius: 6px;
    padding: 16px 16px 20px;
    margin-top: 8px;
    width: 295px;
}

.signup-confirm-survey-title {
    font-family: sans-serif;
    font-size: 24px;
    font-weight: 700;
    font-style: normal;

/* Prevent name inputs from overflowing their row when users paste/enter very long strings.
   Allow the two-column row to wrap and ensure inputs can shrink properly. */
.signup-row {
    flex-wrap: wrap;
}

.signup-row .signup-input {
    flex: 1 1 0;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
}

@media (max-width: 600px) {
    .signup-row .signup-input {
        flex-basis: 100%;
    }
}
    line-height: 24px;
    letter-spacing: 0;
    text-align: center;
    color: #000000;
    margin-bottom: 12px;
}

.signup-confirm-survey-q {
    font-family: sans-serif;
    font-size: 16px;
    font-weight: 500;
    font-style: normal;
    line-height: 1.5;
    letter-spacing: 0;
    text-align: left;
    color: #000000;
    margin: 0 0 10px;
}

/* Add top spacing when a question follows an answer item */
.conf-check-item + .signup-confirm-survey-q,
.conf-check-item--unanswered + .signup-confirm-survey-q {
    margin-top: 20px;
}

.conf-check-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: sans-serif;
    font-size: 16px;
    font-weight: 500;
    font-style: normal;
    line-height: 1;
    letter-spacing: 0;
    color: #222;
    padding: 6px 0;
}

.conf-check-box {
    width: 22px;
    height: 22px;
    border: 2px solid #d8d8d8;
    border-radius: 4px;
    background: #fff;
    flex-shrink: 0;
    position: relative;
    box-sizing: border-box;
}

.conf-check-box--checked {
    background: #fa4e16;
    border-color: #fa4e16;
}

.conf-check-box--checked::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 5px;
    width: 6px;
    height: 10px;
    border: 2px solid #fff;
    border-top: none;
    border-left: none;
    transform: rotate(45deg);
}

.conf-radio-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: sans-serif;
    font-size: 16px;
    font-weight: 500;
    font-style: normal;
    line-height: 26px;
    letter-spacing: 0;
    color: #222;
    padding: 4px 0;
}

.conf-radio-mark {
    width: 22px;
    height: 22px;
    border: 2px solid #ccc;
    border-radius: 50%;
    flex-shrink: 0;
    position: relative;
    box-sizing: border-box;
}

.conf-radio-mark--checked {
    border-color: #fa4e16;
}

.conf-radio-mark--checked::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    background: #fa4e16;
    border-radius: 50%;
}

.signup-confirm-submit {
    display: block;
    width: 180px;
    margin: 20px auto 0;
    height: 40px;
    background: #fa4e16;
    color: #fff;
    font-family: sans-serif;
    font-size: 18px;
    font-weight: 700;
    font-style: normal;
    line-height: 1;
    letter-spacing: 0;
    text-align: center;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: opacity 0.2s;
}

.signup-confirm-submit:active {
    opacity: 0.8;
}

/* ===== Email Verification Popup ===== */
.signup-verify-modal {
    padding: 28px 24px 28px;
}

.signup-verify-desc {
    font-family: sans-serif;
    font-size: 16px;
    font-weight: 500;
    font-style: normal;
    line-height: 1.5;
    letter-spacing: 0;
    color: #000000;
    margin: 0 0 20px;
    width: 295px;
}

.signup-verify-field {
    margin-bottom: 16px;
}

.signup-verify-label {
    display: block;
    font-family: sans-serif;
    font-size: 16px;
    font-weight: 700;
    font-style: normal;
    line-height: 1;
    letter-spacing: 0;
    color: #000000;
    width: 295px;
    margin-bottom: 10px;
}

.signup-verify-input {
    display: block;
    width: 295px;
    height: 48px;
    border: 2px solid #d0d5da;
    border-radius: 6px;
    padding: 0 16px;
    font-size: 28px;
    font-weight: 700;
    text-align: center;
    letter-spacing: 0.3em;
    color: #111;
    background: #fff;
    box-sizing: border-box;
    outline: none;
}

.signup-verify-input:focus {
    border-color: #888;
}

.signup-verify-block {
    padding: 20px 0 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    width: 295px;
}

.signup-verify-btn-submit {
    width: 180px;
    height: 40px;
    background: #fa4e16;
    color: #fff;
    font-family: sans-serif;
    font-size: 18px;
    font-weight: 700;
    font-style: normal;
    line-height: 1;
    letter-spacing: 0;
    text-align: center;
    border: none;
    border-radius: 100px;
    cursor: pointer;
    flex-shrink: 0;
    transition: opacity 0.2s;
}

.signup-verify-btn-submit:active {
    opacity: 0.8;
}

.signup-verify-note {
    font-family: sans-serif;
    font-size: 14px;
    font-weight: 500;
    font-style: normal;
    line-height: 1.5;
    letter-spacing: 0;
    color: #4B5763;
    margin: 0;
    text-align: left;
    align-self: flex-start;
}

.signup-verify-note__link {
    color: #4B5763;
    text-decoration: underline;
    text-underline-offset: 2px;
    font-family: 'Noto Sans JP', 'family-sans', sans-serif;
    font-weight: 500;
    font-style: normal;
    font-size: 14px;
    line-height: 150%;
    letter-spacing: 0;
}

.signup-verify-divider {
    width: 100%;
    border: none;
    border-top: 1px solid #e0e0e0;
    margin: 16px 0;
}

.signup-verify-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.signup-verify-btn-outline {
    width: 240px;
    height: 40px;
    background: #fff;
    color: #fa4e16;
    font-family: sans-serif;
    font-size: 18px;
    font-weight: 700;
    font-style: normal;
    line-height: 1;
    letter-spacing: 0;
    text-align: center;
    border: 2px solid #fa4e16;
    border-radius: 100px;
    cursor: pointer;
    transition: opacity 0.2s;
}

.signup-verify-btn-outline:active {
    opacity: 0.8;
}

/* ===== SMS Auth Popup ===== */
.signup-sms-modal {
    padding: 28px 24px 28px;
}

.signup-sms-input {
    font-size: 16px;
    text-align: left;
    letter-spacing: normal;
}

.signup-sms-btn-next {
    width: 200px;
    height: 40px;
    background: #fa4e16;
    color: #fff;
    font-family: sans-serif;
    font-size: 18px;
    font-weight: 700;
    font-style: normal;
    line-height: 1;
    letter-spacing: 0;
    text-align: center;
    border: none;
    border-radius: 100px;
    cursor: pointer;
    flex-shrink: 0;
    transition: opacity 0.2s;
}

.signup-sms-btn-next:active {
    opacity: 0.8;
}

@media screen and (min-width: 768px) {
    .signup-sms-btn-next {
        width: 220px;
    }
    .signup-verify-btn-outline {
        width: 280px;
    }
}

/* ===== SMS Code Verify Popup ===== */
#signup-sms-verify-overlay {
    padding-top: 120px;
}

/* ===== Auth Success Popup ===== */
#signup-success-overlay {
    align-items: center;
    padding-top: 16px;
}

.signup-success-modal {
    padding: 36px 24px 32px;
    text-align: center;
}

.signup-success-icon {
    display: flex;
    justify-content: center;
    margin-bottom: 12px;
}

.signup-success-title {
    font-family: sans-serif;
    font-size: 24px;
    font-weight: 700;
    font-style: normal;
    line-height: 1.5;
    letter-spacing: 0;
    text-align: center;
    color: #111;
    margin: 0 0 12px;
}

.signup-success-desc {
    font-family: sans-serif;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.6;
    color: #444;
    margin: 0 0 24px;
    text-align: left;
}

.signup-success-btn {
    display: block;
    width: 80%;
    margin: 0 auto;
    height: 54px;
    background: #fa4e16;
    color: #fff;
    font-family: sans-serif;
    font-size: 18px;
    font-weight: 700;
    font-style: normal;
    line-height: 1;
    letter-spacing: 0;
    text-align: center;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: opacity 0.2s;
}

.signup-success-btn:active {
    opacity: 0.8;
}

/* ===== Change Email Popup ===== */
.signup-change-email-modal {
    padding: 28px 24px 32px;
    width: 335px;
    max-width: 100%;
    box-sizing: border-box;
    margin: 0 auto;
}

.signup-change-email-field {
    margin-bottom: 20px;
}

.signup-change-email-input {
    display: block;
    width: 100%;
    max-width: 295px;
    text-align: center;
    height: 48px;
    border: 1.5px solid #d0d5da;
    border-radius: 6px;
    padding: 0 14px;
    font-size: 15px;
    color: #000000;
    background: #fff;
    box-sizing: border-box;
    outline: none;
}

.signup-change-email-input::placeholder {
    color: #bbb;
}

.signup-change-email-input:focus {
    border-color: #888;
}

.signup-change-email-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 180px;
    margin: 16px auto 0;
    height: 40px;
    background: #fa4e16;
    color: #fff;
    font-family: sans-serif;
    font-size: 16px;
    font-weight: 700;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: opacity 0.2s;
}

.signup-change-email-submit:active {
    opacity: 0.8;
}

.signup-change-email-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.signup-change-email-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

/* ===== Field Validation Errors ===== */
.signup-field-error {
    font-family: semantic/fontfarmily/family-sans;
    color: #FF2626;
    font-size: 14px;
    font-weight: 700;
    margin: 4px 0 0;
    line-height: 1.4;
    text-align: left;
}

.signup-input--error {
    border-color: #FF2626 !important;
    background-color: #fff;
}

.signup-select--error {
    border-color: #FF2626 !important;
    background-color: #fff;
}

/* Ensure inputs/selects keep white background in all states (error, :invalid, autofill) */
.signup-input,
.signup-select,
.signup-input--full,
.signup-input--postal3,
.signup-input--postal4 {
    background-color: #fff !important;
}

.signup-input--error,
.signup-select--error {
    background-color: #fff !important;
}

/* Override browser autofill background */
input:-webkit-autofill,
textarea:-webkit-autofill,
select:-webkit-autofill {
    -webkit-box-shadow: 0 0 0px 1000px #fff inset !important;
    box-shadow: 0 0 0px 1000px #fff inset !important;
    background-color: #fff !important;
    color: #000000 !important;
}

/* Keep :invalid and focused states with white background */
.signup-input:invalid,
.signup-select:invalid,
.signup-input:focus,
.signup-select:focus {
    background-color: #fff !important;
}

/* Ensure errored inputs keep the red border in all states (focus, autofill, :invalid) */
.signup-input--error,
.signup-select--error,
.signup-input.signup-input--error,
.signup-select.signup-select--error {
    border-color: #FF2626 !important;
    box-shadow: none !important;
}

.signup-input--error:focus,
.signup-select--error:focus {
    border-color: #FF2626 !important;
    outline: none !important;
}

input.signup-input--error:-webkit-autofill,
textarea.signup-input--error:-webkit-autofill,
select.signup-select--error:-webkit-autofill {
    -webkit-box-shadow: 0 0 0px 1000px #fff inset !important;
    box-shadow: 0 0 0px 1000px #fff inset !important;
    border-color: #FF2626 !important;
}

/* Center-only wrapper for verify button placed above the note */
#signup-sms-verify-overlay .signup-verify-button-row,
#signup-verify-overlay .signup-verify-button-row {
    display: flex !important;
    justify-content: center !important;
    width: 100% !important;
    margin: 12px 0 4px 0 !important;
}

#signup-sms-verify-overlay .signup-verify-button-row .signup-verify-btn-submit,
#signup-verify-overlay .signup-verify-button-row .signup-verify-btn-submit {
    margin: 0 !important;
}

