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

html {
    font-family: 'Roboto', 'Yu Gothic', 'Hiragino Sans', sans-serif;
    color: #1a1a1a;
    background: #fafafa;
}

body {
    margin: 0;
    padding: 0;
    background: #fafafa;
}


/* === Header === */
.c-header {
    width: 100%;
    background: #ffffff;
    border-bottom: 1px solid #e0e0e0;
    margin: 0;
}

.c-header__inner {
    max-width: 960px;
    margin: 0 auto;
    padding: 20px 35px;
    text-align: center;
}

.c-header__logo {
    width: 130px;
}


/* === Title bar === */
.c-title {
    text-align: center;
    background-color: #1a1a1a;
    margin: 0 0 32px;
    padding: 32px 0;
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.04em;
}


/* === Sections === */
.c-section {
    max-width: 720px;
    width: 92%;
    margin: 0 auto;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 36px 32px;
    box-sizing: border-box;
}

.c-mr--25px {
    margin-right: 25px;
}

.c-mt--50 {
    margin-top: 50px;
}

.c-mb--50 {
    margin-bottom: 50px;
}

.c-separator_sRight {
    width: 350px;
    color: #e0e0e0;
    margin-right: 0;
    border: none;
    border-top: 1px solid #e0e0e0;
}

.c-text__total {
    font-size: 22px;
    color: #e63946;
    font-weight: 700;
    font-family: 'Bebas Neue', 'Roboto', sans-serif;
    letter-spacing: 0.02em;
}


/* === Form === */
.form {
    margin: 32px 0 28px 0;
}

.form__table {
    display: table;
    border-collapse: collapse;
    width: 100%;
}

.form__row {
    display: table-row;
}

.form__row--period {
    display: none;
}

.form__cell {
    display: table-cell;
    padding: 14px 14px;
    box-sizing: border-box;
    border-bottom: 1px solid #f0f0f0;
    vertical-align: top;
}

.form__cell--label {
    width: 200px;
    background-color: transparent;
    font-size: 14px;
    font-weight: 500;
    color: #1a1a1a;
    padding-top: 22px;
}

.form__cell--input {
    width: calc(100% - 200px);
}

.form__input {
    padding: 12px 14px;
    border-radius: 4px;
    border: 1px solid #d0d0d0;
    background-color: #ffffff;
    width: 100%;
    box-sizing: border-box;
    font-size: 14px;
    font-family: inherit;
    color: #1a1a1a;
    transition: border-color 0.15s ease;
}

.form__input:focus {
    outline: none;
    border-color: #1a1a1a;
}

.form__input--selectSmall {
    width: calc(95% / 3);
}

.form__textField {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #d0d0d0;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 14px;
    font-family: inherit;
    color: #1a1a1a;
    transition: border-color 0.15s ease;
}

.form__textField:focus {
    outline: none;
    border-color: #1a1a1a;
}

.form__required {
    font-size: 11px;
    font-weight: 700;
    color: #ffffff;
    background: #e63946;
    margin-left: 12px;
    padding: 3px 8px;
    border-radius: 2px;
    letter-spacing: 0.05em;
}

.form__notice {
    margin-top: 12px;
    margin-bottom: 12px;
    text-align: left;
    color: #e63946;
    font-weight: 500;
    font-size: 12px;
}

.form__notice2 {
    margin-top: 12px;
    text-align: left;
    font-size: 12px;
    color: #666;
    line-height: 1.7;
}


/* === Agreement === */
.agreement {
    text-align: center;
    padding: 28px;
    margin-bottom: 56px;
    max-width: 720px;
    width: 92%;
    margin-left: auto;
    margin-right: auto;
    background: #fafafa;
    border-radius: 8px;
    box-sizing: border-box;
}

.agreement > p {
    padding: 8px;
    font-size: 14px;
    line-height: 1.8;
}

.agreement > p > span {
    margin: 8px;
}

.agreement a {
    color: #1a1a1a;
    text-decoration: underline;
    font-weight: 500;
}

.agreement a:hover {
    color: #e63946;
}


/* === Result === */
.result {
    text-align: center;
    background-color: #fafafa;
    padding: 18px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
}

.result, .submit {
    display: none;
}

.result__table {
    display: table;
    border-collapse: collapse;
    width: 100%;
}

.result__row {
    display: table-row;
}

.result__cell {
    display: table-cell;
    padding: 14px;
    box-sizing: border-box;
}

.result__cell--label {
    width: calc(100% - 200px);
    font-size: 14px;
    text-align: right;
    color: #555;
}

.result__cell--input {
    width: 200px;
    text-align: right;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    background-color: #ffffff;
    font-weight: 700;
    color: #1a1a1a;
}

.result__input {
    padding: 12px;
    border-radius: 4px;
    border: 1px solid #d0d0d0;
    background-color: #ffffff;
    width: 100%;
}

.result__notice {
    text-align: right;
    font-weight: 700;
    font-size: 14px;
    margin: 14px 0 4px 0;
    color: #1a1a1a;
}

.result__notice--2 {
    text-align: center;
    color: #666;
}


/* === Submit Button (Green - JAG-member-basic 統一) === */
.submit {
    margin: 32px 0 64px;
    text-align: center;
}

.submit__notice {
    font-size: 13px;
    margin-bottom: 24px;
    color: #666;
}

.submit__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 350px;
    max-width: 90%;
    padding: 18px;
    margin: auto;
    background-color: #1a9f5c;
    color: #ffffff;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    font-weight: 700;
    font-size: 15px;
    letter-spacing: 0.08em;
    font-family: inherit;
    transition: background-color 0.2s ease;
    -webkit-appearance: none;
    appearance: none;
}

.submit__btn:hover {
    background-color: #168a4f;
    color: #ffffff;
}

.submit__btn:disabled {
    background-color: #c0c0c0;
    cursor: not-allowed;
}


/* === Payment === */
.payment {
    margin: 32px 0 28px 0;
    background-color: #fafafa;
    padding: 20px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
}

.payment__table {
    display: table;
    border-collapse: collapse;
    width: 100%;
}

.payment__row {
    display: table-row;
}

.payment__cell {
    display: table-cell;
    padding: 14px;
    box-sizing: border-box;
}

.payment__cell--label {
    width: 200px;
    font-size: 14px;
    text-align: right;
    color: #555;
}

.payment__cell--input {
    width: calc(100% - 200px);
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    background-color: #ffffff;
    text-align: right;
    font-weight: 700;
}


/* === Thanks (完了画面) === */
.thanks {
    margin: 32px 0 28px 0;
    background-color: #ffffff;
    padding: 48px 32px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    text-align: center;
}

.thanks__notice {
    text-align: center;
    font-size: 15px;
    line-height: 1.95;
    color: #1a1a1a;
}

.thanks__link {
    display: inline-block;
    min-width: 280px;
    margin: 36px auto 12px auto;
    padding: 16px 36px;
    text-align: center;
    color: #ffffff;
    text-decoration: none;
    background-color: #1a1a1a;
    border-radius: 4px;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.08em;
    transition: background-color 0.2s ease;
}

.thanks__link:hover {
    background-color: #333333;
    color: #ffffff;
}


/* === Footer === */
.c-footer {
    padding: 28px 35px;
    background-color: #1a1a1a;
    text-align: center;
    margin-top: 64px;
}

.c-footer__copyright {
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
    letter-spacing: 0.05em;
    margin: 0;
}


/* === Responsive === */
@media screen and (max-width: 700px) {
    .c-title {
        font-size: 20px;
        padding: 24px 16px;
        margin-bottom: 24px;
    }

    .c-section {
        padding: 24px 18px;
        width: 95%;
    }

    .form__cell {
        display: block;
        width: 100% !important;
        padding: 10px 0;
        border-bottom: none;
    }

    .form__row {
        display: block;
        padding: 14px 0;
        border-bottom: 1px solid #f0f0f0;
    }

    .form__cell--label {
        padding-top: 0;
        padding-bottom: 6px;
    }

    .form__input--selectSmall {
        width: calc(98% / 3);
    }

    .agreement {
        width: 95%;
        padding: 20px 16px;
    }

    .submit__btn {
        width: 100%;
        max-width: none;
    }

    .result__cell {
        padding: 10px;
    }

    .payment__cell {
        padding: 10px;
        font-size: 13px;
    }
}
