/* ============================================
   コミクス アカデミー フォーム
   LP テイスト継承スタイル
   ============================================ */

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 400;
    color: #333;
    background: #f0f4f8;
    line-height: 1.8;
    -webkit-font-smoothing: antialiased;
}

/* --- Header --- */
.aicourse-header {
    background: #fff;
    padding: 16px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}
.aicourse-header .header-inner {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    gap: 16px;
}
.aicourse-header .header-logo img {
    height: 32px;
}

/* --- Hero --- */
.aicourse-hero {
    background: linear-gradient(135deg, #3e25ea 0%, #314bff 60%, #6366f1 100%);
    padding: 48px 20px 40px;
    text-align: center;
    color: #fff;
    position: relative;
    overflow: hidden;
}
.aicourse-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 70%, rgba(255,255,255,0.06) 0%, transparent 50%);
    pointer-events: none;
}
.aicourse-hero h1 {
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.15em;
    margin-bottom: 12px;
    opacity: 0.9;
}
.aicourse-hero h2 {
    font-size: 26px;
    font-weight: 900;
    line-height: 1.4;
    margin-bottom: 8px;
    position: relative;
}
.aicourse-hero p {
    font-size: 14px;
    opacity: 0.85;
}

@media (min-width: 768px) {
    .aicourse-hero h2 {
        font-size: 32px;
    }
}

/* --- Main content --- */
.aicourse-main {
    max-width: 680px;
    margin: -20px auto 60px;
    padding: 0 16px;
    position: relative;
    z-index: 1;
}

.aicourse-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
    padding: 40px 32px;
}
@media (max-width: 600px) {
    .aicourse-card {
        padding: 28px 20px;
    }
}

.aicourse-card h3 {
    font-size: 20px;
    font-weight: 700;
    color: #3e25ea;
    text-align: center;
    margin-bottom: 8px;
}
.aicourse-card .card-subtitle {
    text-align: center;
    font-size: 13px;
    color: #888;
    margin-bottom: 32px;
}

/* --- Form fields --- */
.form-group {
    margin-bottom: 24px;
}
.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: #333;
    margin-bottom: 8px;
}
.form-group label .required {
    display: inline-block;
    background: #e74c3c;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 3px;
    margin-left: 8px;
    vertical-align: middle;
    letter-spacing: 0.05em;
}
.form-group label .optional {
    display: inline-block;
    background: #aab2bd;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 3px;
    margin-left: 8px;
    vertical-align: middle;
    letter-spacing: 0.05em;
}
.form-group textarea,
.form-group input[type="text"],
.form-group input[type="tel"],
.form-group input[type="email"] {
    width: 100%;
    padding: 14px 16px;
    font-size: 16px;
    font-family: 'Noto Sans JP', sans-serif;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background: #fafbfc;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
}
.form-group input:focus,
.form-group textarea:focus {
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(62, 37, 234, 0.15);
    background: #fff;
}
.form-group textarea {
    resize: vertical;
    min-height: 120px;
    line-height: 1.8;
}
.form-group .error-message {
    color: #e74c3c;
    font-size: 13px;
    margin-top: 6px;
}
.form-group .hint {
    color: #888;
    font-size: 12px;
    margin-top: 4px;
}

/* --- Checkboxes --- */
.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 0;
}
.checkbox-group .checkbox-item {
    padding: 10px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}
.checkbox-group .checkbox-item:hover {
    border-color: #4f46e5;
    background: #eef2ff;
}
.checkbox-group .checkbox-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #4f46e5;
    cursor: pointer;
    flex-shrink: 0;
}
.checkbox-group .checkbox-item span {
    cursor: pointer;
}

/* --- Radio buttons --- */
.radio-group {
    display: flex;
    flex-direction: column;
    gap: 0;
}
.radio-option {
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
}
.radio-option:hover {
    border-color: #4f46e5;
    background: #eef2ff;
}
.radio-option label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-weight: 500 !important;
    margin-bottom: 0 !important;
}
.radio-option input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: #4f46e5;
    cursor: pointer;
    flex-shrink: 0;
}
.invoice-sub-group {
    margin-top: 12px;
    margin-left: 28px;
    padding: 14px 16px;
    background: #eef2ff;
    border-radius: 8px;
    border-left: 3px solid #4f46e5;
}
.invoice-sub-group > label {
    font-size: 13px !important;
    color: #555 !important;
    margin-bottom: 8px !important;
}
.invoice-sub-group .radio-option {
    background: #fff;
    border-color: #c7d2fe;
    padding: 10px 14px;
    margin-bottom: 6px;
}
.invoice-address-group {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #c7d2fe;
}
.invoice-address-group > label {
    font-size: 13px !important;
    color: #555 !important;
    margin-bottom: 8px !important;
}
.invoice-address-group input[type="text"] {
    width: 100%;
}
.zipcode-row {
    display: flex;
    gap: 8px;
    align-items: center;
}
.zipcode-row input[type="text"] {
    width: 120px !important;
    flex-shrink: 0;
}
.btn-zip-search {
    padding: 10px 20px;
    font-size: 13px;
    font-weight: 700;
    font-family: 'Noto Sans JP', sans-serif;
    color: #fff;
    background: linear-gradient(135deg, #f59e0b 0%, #f97316 100%);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(249, 115, 22, 0.3);
    transition: transform 0.2s, box-shadow 0.2s;
}
.btn-zip-search:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.4);
}

/* --- Payment notice (input page) --- */
.credit-card-notice {
    margin-top: 8px;
    margin-left: 28px;
    padding: 10px 14px;
    background: #eef2ff;
    border-radius: 8px;
    border-left: 3px solid #4f46e5;
    font-size: 13px;
    color: #555;
}

/* --- Payment error (confirm page) --- */
.payment-error {
    background: #fef2f2;
    border: 1px solid #fca5a5;
    border-radius: 8px;
    padding: 14px 16px;
    margin-top: 16px;
    color: #dc2626;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.6;
}

/* --- Confirm mode --- */
.confirm-value {
    font-size: 16px;
    padding: 12px 16px;
    background: #f0f4f8;
    border-radius: 8px;
    border: 1px solid #e8e8e8;
    min-height: 44px;
}

/* --- Buttons --- */
.form-actions {
    margin-top: 32px;
    text-align: center;
}
.btn-submit {
    display: inline-block;
    width: 100%;
    max-width: 360px;
    padding: 16px 32px;
    font-size: 16px;
    font-weight: 700;
    font-family: 'Noto Sans JP', sans-serif;
    color: #fff;
    background: linear-gradient(135deg, #f59e0b 0%, #f97316 100%);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(249, 115, 22, 0.35);
    transition: transform 0.2s, box-shadow 0.2s;
    letter-spacing: 0.1em;
}
.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(249, 115, 22, 0.45);
}

.btn-send {
    display: inline-block;
    width: 200px;
    padding: 16px 0;
    font-size: 16px;
    font-weight: 700;
    font-family: 'Noto Sans JP', sans-serif;
    color: #fff;
    background: linear-gradient(135deg, #f59e0b 0%, #f97316 100%);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(249, 115, 22, 0.35);
    transition: transform 0.2s, box-shadow 0.2s;
    letter-spacing: 0.1em;
    text-align: center;
}
.btn-send:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(249, 115, 22, 0.45);
}

.btn-back {
    display: inline-block;
    width: 200px;
    padding: 16px 0;
    font-size: 16px;
    font-weight: 700;
    font-family: 'Noto Sans JP', sans-serif;
    color: #666;
    background: #fff;
    border: 2px solid #ddd;
    border-radius: 50px;
    cursor: pointer;
    transition: border-color 0.2s;
    text-align: center;
}
.btn-back:hover {
    border-color: #999;
}

.form-actions-confirm {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

/* --- Policy note --- */
.policy-note {
    text-align: center;
    font-size: 12px;
    color: #888;
    margin-top: 20px;
    line-height: 1.8;
}
.policy-note a {
    color: #4f46e5;
    text-decoration: underline;
}

/* --- Thanks --- */
.thanks-icon {
    text-align: center;
    margin-bottom: 20px;
}
.thanks-icon .checkmark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, #3e25ea 0%, #4f46e5 100%);
    border-radius: 50%;
    color: #fff;
    font-size: 36px;
}
.thanks-message {
    text-align: center;
}
.thanks-message h3 {
    color: #3e25ea;
    margin-bottom: 16px;
}
.thanks-message p {
    font-size: 15px;
    color: #555;
    line-height: 1.9;
    margin-top: 16px;
}
.thanks-link {
    text-align: center;
    margin-top: 32px;
}
.thanks-link a {
    display: inline-block;
    padding: 14px 40px;
    font-size: 14px;
    font-weight: 700;
    color: #4f46e5;
    border: 2px solid #4f46e5;
    border-radius: 50px;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}
.thanks-link a:hover {
    background: #4f46e5;
    color: #fff;
}

/* --- Smart phone --- */
@media (max-width: 480px) {
    .aicourse-hero {
        padding: 32px 16px 28px;
    }
    .aicourse-hero h2 {
        font-size: 20px;
    }
    .aicourse-hero p {
        font-size: 12px;
    }
    .aicourse-main {
        margin-bottom: 40px;
    }
    .aicourse-card h3 {
        font-size: 18px;
    }
    .form-group label {
        font-size: 13px;
    }
    .form-group textarea,
    .form-group input[type="text"],
    .form-group input[type="tel"],
    .form-group input[type="email"] {
        font-size: 16px;
        padding: 12px 14px;
    }
    .btn-submit {
        font-size: 15px;
        padding: 14px 24px;
    }
    .btn-send,
    .btn-back {
        width: 160px;
        font-size: 14px;
        padding: 14px 0;
    }
    .form-actions-confirm {
        gap: 12px;
    }
    .thanks-message p {
        font-size: 14px;
    }
    .thanks-message p br {
        display: none;
    }
.aicourse-footer a {
        display: block;
        margin: 4px 0;
    }
}

/* --- Footer --- */
.aicourse-footer {
    background: #172554;
    color: rgba(255,255,255,0.6);
    text-align: center;
    padding: 24px 20px;
    font-size: 12px;
}
.aicourse-footer a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    margin: 0 12px;
}
.aicourse-footer a:hover {
    color: #fff;
}
.aicourse-footer .copyright {
    margin-top: 12px;
}
