/* ================================
   JAN-ASIN LP - Form Specific CSS
   ================================ */

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

:root {
    --primary: #137fec;
    --primary-dark: #0d6fd4;
    --primary-light: #e8f3fd;
    --text-dark: #0f172a;
    --text-mid: #475569;
    --text-light: #94a3b8;
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --border: #e2e8f0;
    --border-focus: #137fec;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, .06);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, .10);
    --shadow-primary: 0 8px 24px rgba(19, 127, 236, .25);
    --radius-sm: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --error: #ef4444;
}

.u-ib {
    display: inline-block;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans JP', 'Inter', sans-serif;
    background: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
}

/* ---- HEADER ---- */
.lp-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    padding: 14px 24px;
}

.lp-header .inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.lp-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-dark);
}

.lp-logo-icon {
    width: 34px;
    height: 34px;
    background: var(--primary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lp-logo-icon .material-symbols-outlined {
    color: #fff;
    font-size: 20px;
}

.lp-logo-text {
    font-size: 1.05rem;
    font-weight: 900;
    letter-spacing: -0.02em;
}

.lp-logo-text span {
    color: var(--primary);
}

.lp-nav {
    display: flex;
    align-items: center;
    gap: 28px;
}

.lp-nav a {
    font-size: .875rem;
    font-weight: 700;
    color: var(--text-dark);
    text-decoration: none;
    transition: color .2s;
}

.lp-nav a:hover {
    color: var(--primary);
}

.btn-cta-small {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--primary);
    color: #fff;
    font-weight: 700;
    font-size: .875rem;
    padding: 10px 20px;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: background .2s, transform .15s;
    box-shadow: var(--shadow-primary);
}

.btn-cta-small:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 4px;
    background: none;
    border: none;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-dark);
    border-radius: 2px;
    transition: all .3s;
}

.hamburger.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
    opacity: 0;
}

.hamburger.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    padding: 20px 24px;
    flex-direction: column;
    gap: 16px;
    z-index: 99;
    box-shadow: var(--shadow-xl);
}

.mobile-menu.open {
    display: flex;
}

.mobile-menu a {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-dark);
    text-decoration: none;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}

.mobile-menu a:hover {
    color: var(--primary);
}

.mobile-menu .btn-cta-small {
    width: 100%;
    justify-content: center;
    margin-top: 4px;
    color: #fff;
}

/* ---- MAIN FORM AREA ---- */
.form-main {
    flex: 1;
    display: flex;
    justify-content: center;
    padding: 48px 24px 80px;
}

.form-card {
    background: #fff;
    border-radius: var(--radius-xl);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-xl);
    padding: 48px;
    width: 100%;
    max-width: 720px;
}

.form-header {
    text-align: center;
    margin-bottom: 40px;
}

.form-header h1 {
    font-size: 2rem;
    font-weight: 900;
    letter-spacing: -.03em;
    margin-bottom: 8px;
}

.form-header p {
    color: var(--text-mid);
    font-size: .95rem;
    font-weight: 500;
}

/* ---- FORM ELEMENTS ---- */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-row {
    display: grid;
    gap: 20px;
}

.form-row.two-col {
    grid-template-columns: 1fr 1fr;
}

.form-sep {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

label {
    font-size: .875rem;
    font-weight: 700;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 8px;
}

.badge-required {
    font-size: .65rem;
    font-weight: 900;
    background: var(--primary-light);
    color: var(--primary);
    padding: 2px 8px;
    border-radius: 4px;
}

.badge-optional {
    font-size: .65rem;
    font-weight: 900;
    background: #f1f5f9;
    color: #64748b;
    padding: 2px 8px;
    border-radius: 4px;
}

.form-note {
    font-size: .72rem;
    color: var(--text-light);
    font-weight: 500;
    margin-top: 2px;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
select,
textarea {
    width: 100%;
    height: 52px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    padding: 0 16px;
    font-family: inherit;
    font-size: .9rem;
    color: var(--text-dark);
    background: #fff;
    outline: none;
    transition: border-color .2s, box-shadow .2s;
    appearance: none;
}

textarea {
    height: auto;
    min-height: 120px;
    padding: 14px 16px;
    resize: vertical;
    line-height: 1.6;
}

select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 44px;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(19, 127, 236, .12);
}

input.error,
select.error,
textarea.error {
    border-color: var(--error);
}

.error-msg {
    font-size: .78rem;
    color: var(--error);
    font-weight: 600;
    display: none;
}

.error-msg.visible {
    display: block;
}

/* ---- PHONE NOTE ---- */
.input-wrapper {
    position: relative;
}

.input-suffix {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: .85rem;
    font-weight: 700;
    color: var(--text-light);
    pointer-events: none;
}

/* ---- AGREEMENT ---- */
.agreement {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    background: var(--bg-light);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
}

.agreement input[type="checkbox"] {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    margin-top: 2px;
    accent-color: var(--primary);
    cursor: pointer;
}

.agreement label {
    display: block;   /* Reset from global flex */
    font-size: .85rem;
    font-weight: 500;
    color: var(--text-mid);
    cursor: pointer;
    line-height: 1.5;
}

.agreement label a {
    color: var(--primary);
    font-weight: 700;
    text-decoration: none;
}

.agreement label a:hover {
    text-decoration: underline;
}

/* ---- SUBMIT ---- */
.submit-area {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 8px;
}

button[type="submit"] {
    width: 100%;
    height: 60px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: var(--radius-xl);
    font-family: inherit;
    font-size: 1.05rem;
    font-weight: 900;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background .2s, transform .15s, box-shadow .2s;
    box-shadow: var(--shadow-primary);
}

button[type="submit"]:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 12px 32px rgba(19, 127, 236, .35);
}

button[type="submit"]:active {
    transform: translateY(0);
}

button[type="submit"] .material-symbols-outlined {
    font-size: 22px;
}

.submit-note {
    text-align: center;
    font-size: .78rem;
    color: var(--text-light);
    line-height: 1.5;
}

/* ---- FOOTER ---- */
.lp-footer {
    background: #fff;
    border-top: 1px solid var(--border);
    padding: 32px 24px 48px;
}

.lp-footer .footer-bottom {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    color: var(--text-light);
    line-height: 1.5;
}

.lp-footer a {
    color: var(--text-light);
    text-decoration: none;
    transition: color .2s;
}

.lp-footer a:hover {
    color: var(--primary);
}

.footer-legal {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 16px;
}

.footer-legal a {
    white-space: nowrap;
}

/* ---- THANKS PAGE ---- */
.thanks-main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 24px;
}

.thanks-card {
    background: #fff;
    border-radius: var(--radius-xl);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-xl);
    padding: 64px 48px;
    width: 100%;
    max-width: 560px;
    text-align: center;
}

.thanks-icon {
    width: 80px;
    height: 80px;
    background: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 28px;
}

.thanks-icon .material-symbols-outlined {
    color: var(--primary);
    font-size: 40px;
}

.thanks-card h1 {
    font-size: 1.7rem;
    font-weight: 900;
    margin-bottom: 12px;
}

.thanks-card .thanks-lead {
    color: var(--text-mid);
    font-size: .95rem;
    line-height: 1.75;
    margin-bottom: 32px;
}

.thanks-info {
    background: var(--bg-light);
    border-radius: var(--radius-md);
    padding: 20px 24px;
    text-align: left;
    margin-bottom: 36px;
}

.thanks-info p {
    font-size: .875rem;
    color: var(--text-mid);
    display: flex;
    align-items: flex-start;
    gap: 8px;
    line-height: 1.6;
}

.thanks-info .material-symbols-outlined {
    color: var(--primary);
    font-size: 18px;
    flex-shrink: 0;
    margin-top: 2px;
}

.thanks-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--primary);
    color: #fff;
    font-weight: 700;
    font-size: .95rem;
    padding: 14px 32px;
    border-radius: var(--radius-xl);
    text-decoration: none;
    transition: background .2s, transform .15s;
    box-shadow: var(--shadow-primary);
}

.thanks-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

/* ---- ERROR BANNER ---- */
.error-banner {
    background: #fef2f2;
    border: 1px solid #fca5a5;
    border-radius: var(--radius-md);
    padding: 14px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: .875rem;
    color: #b91c1c;
    font-weight: 600;
}

.error-banner .material-symbols-outlined {
    font-size: 20px;
}

.error-banner.hidden {
    display: none;
}

/* ---- PAGE LAYOUT ---- */
.page-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
    .lp-nav,
    .header-cta {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .form-card {
        padding: 28px 20px;
    }

    .form-row.two-col {
        grid-template-columns: 1fr;
    }

    .thanks-card {
        padding: 40px 24px;
    }

    .lp-footer .footer-bottom {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 16px;
    }
}

@media (max-width: 480px) {
    .form-header h1 {
        font-size: 1.6rem;
    }
}