body {
    margin: 0;
    font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", "Yu Gothic Medium", Meiryo, sans-serif;
    background: #f5f5f5;
    color: #222;
}

.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    box-sizing: border-box;
}

.login-card {
    width: 100%;
    max-width: 420px;
    background: #fff;
    border-radius: 12px;
    padding: 28px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    box-sizing: border-box;
}

.line-login-button {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    margin-top: 8px;
    padding: 12px;
    border-radius: 8px;
    background: #06c755;
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    box-sizing: border-box;
}

.login-note {
    margin: 16px 0 0;
    color: #666;
    font-size: 13px;
    line-height: 1.7;
}

h1 {
    margin: 0;
    font-size: 26px;
    text-align: center;
}

.subtitle {
    margin: 8px 0 24px;
    color: #666;
    text-align: center;
}

label {
    display: block;
    margin-bottom: 16px;
    font-weight: 600;
}

input {
    width: 100%;
    margin-top: 6px;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 16px;
    box-sizing: border-box;
}

button {
    width: 100%;
    margin-top: 8px;
    padding: 12px;
    border: 0;
    border-radius: 8px;
    background: #222;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
}

.error-message {
    margin-bottom: 16px;
    padding: 10px 12px;
    border-radius: 8px;
    background: #fee2e2;
    color: #991b1b;
    font-size: 14px;
}

.page-container {
    max-width: 960px;
    margin: 0 auto;
    padding: 32px 24px;
    box-sizing: border-box;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 24px;
}

.page-header h1 {
    text-align: left;
}

.page-title-with-logo {
    display: flex;
    align-items: center;
    gap: 14px;
}

.page-title-logo {
    display: block;
    width: auto;
    height: 56px;
    flex-shrink: 0;
}

.page-title-logo-link {
    display: inline-flex;
    align-items: center;
    color: inherit;
    text-decoration: none;
}

.page-header-subtitle {
    margin: 6px 0 0;
    text-align: left;
}

.login-logo-link {
    display: flex;
    justify-content: center;
    margin-bottom: 14px;
    color: inherit;
    text-decoration: none;
}

.login-logo-image {
    display: block;
    width: auto;
    height: 72px;
}

.login-title {
    font-size: 22px;
}

.logout-link {
    display: inline-block;
    padding: 8px 12px;
    border-radius: 8px;
    background: #eee;
    color: #222;
    text-decoration: none;
    font-weight: 600;
}

.panel {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.08);
}

.panel + .panel {
    margin-top: 20px;
}

.panel h2 {
    margin: 0 0 16px;
    font-size: 20px;
}

.info-list {
    margin: 0;
}

.info-list > div {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}

.info-list > div:last-child {
    border-bottom: 0;
}

.info-list dt {
    font-weight: 700;
    color: #555;
}

.info-list dd {
    margin: 0;
}

.inline-button {
    width: auto;
    margin-top: 0;
    padding: 8px 12px;
    font-size: 14px;
}

.token-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.token-text {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
    font-weight: 700;
}

.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    box-sizing: border-box;
    z-index: 1000;
}

.modal-backdrop.hidden {
    display: none;
}

.modal-card {
    width: 100%;
    max-width: 420px;
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.20);
}

.modal-card h2 {
    margin: 0 0 12px;
    font-size: 20px;
}

.modal-card p {
    margin: 0;
    line-height: 1.7;
    color: #444;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 24px;
}

.secondary-button,
.danger-button {
    width: auto;
    margin-top: 0;
    padding: 9px 14px;
    font-size: 14px;
}

.primary-modal-button {
    width: auto;
    margin-top: 0;
    padding: 9px 14px;
    border: 0;
    border-radius: 8px;
    background: #222;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

.secondary-button {
    background: #e5e7eb;
    color: #222;
}

.danger-button {
    background: #b91c1c;
    color: #fff;
}

/* LP */

.lp-body {
    background: #f7f4ee;
    color: #1f2933;
}

.lp-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #f7f4ee;
    border-bottom: 1px solid rgba(31, 41, 51, 0.10);
}

.manage-project-list {
    display: grid;
    gap: 16px;
}

.manage-project-card {
    padding: 18px;
    border: 1px solid #eee;
    border-radius: 12px;
    background: #fafafa;
}

.manage-project-card h3 {
    margin: 0 0 8px;
    font-size: 17px;
}

.manage-project-id {
    margin: 0 0 16px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
    font-size: 13px;
    color: #555;
    word-break: break-all;
}

.compact-info-list > div {
    grid-template-columns: 140px 1fr;
    padding: 9px 0;
}

.help-text {
    color: #666;
    font-size: 14px;
    line-height: 1.7;
}

.confirmation-list {
    display: grid;
    gap: 14px;
}

.confirmation-card {
    padding: 18px;
    border: 1px solid #eee;
    border-radius: 12px;
    background: #fafafa;
}

.confirmation-card-header {
    display: flex;
    justify-content: space-between;
    gap: 16px;
}

.confirmation-card h3 {
    margin: 0;
    font-size: 16px;
    line-height: 1.6;
}

.confirmation-meta {
    margin: 6px 0 0;
    color: #666;
    font-size: 13px;
}

.confirmation-status-grid {
    margin-top: 14px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.confirmation-status-grid > div {
    padding: 12px;
    border-radius: 10px;
    background: #ffffff;
    text-align: center;
}

.status-number {
    display: block;
    font-size: 22px;
    font-weight: 800;
}

.status-label {
    display: block;
    margin-top: 4px;
    color: #666;
    font-size: 12px;
}

.form-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.required-badge,
.optional-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    padding: 3px 7px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
}

.required-badge {
    background: #fee2e2;
    color: #991b1b;
}

.optional-badge {
    background: #e5e7eb;
    color: #374151;
}

.filter-form {
    display: flex;
    align-items: end;
    gap: 12px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

.filter-form label {
    margin-bottom: 0;
}

.filter-form select {
    display: block;
    min-width: 160px;
    margin-top: 6px;
    padding: 9px 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    background: #ffffff;
    font-size: 15px;
    box-sizing: border-box;
}

.confirmation-card-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.confirmation-card-link:hover {
    border-color: #d1d5db;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

.back-link {
    color: #374151;
    font-weight: 700;
    text-decoration: none;
}

.back-link:hover {
    text-decoration: underline;
}

.confirmation-source-text {
    margin: 0 0 18px;
    padding: 16px;
    border-radius: 10px;
    background: #fafafa;
    line-height: 1.8;
    white-space: pre-wrap;
}

.member-line-id {
    margin: 4px 0 0;
    color: #777;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
    font-size: 12px;
    word-break: break-all;
}

.member-status-list {
    display: grid;
    gap: 10px;
}

.member-status-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
    padding: 14px 0;
    border-bottom: 1px solid #eee;
}

.member-status-row:last-child {
    border-bottom: 0;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 72px;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
}

.status-pending {
    background: #fef3c7;
    color: #92400e;
}

.status-answered {
    background: #dcfce7;
    color: #166534;
}

.status-left,
.status-removed {
    background: #e5e7eb;
    color: #374151;
}

.status-item-open {
    background: #dbeafe;
    color: #1e40af;
}

.status-item-closed {
    background: #dcfce7;
    color: #166534;
}

.status-item-expired {
    background: #e5e7eb;
    color: #374151;
}

.status-item-closed_by_admin {
    background: #e5e7eb;
    color: #374151;
}

.confirmation-close-form {
    margin-top: 20px;
    display: flex;
    justify-content: flex-end;
}

.manage-card-actions {
    margin-top: 16px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.inline-link-button {
    display: inline-block;
    padding: 8px 12px;
    border-radius: 8px;
    background: #222;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.inline-link-button:hover {
    opacity: 0.88;
}

.status-member-active {
    background: #dcfce7;
    color: #166534;
}

.status-member-left {
    background: #fee2e2;
    color: #991b1b;
}

.status-member-removed {
    background: #e5e7eb;
    color: #374151;
}

.panel-actions {
    margin-top: 16px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.form-block {
    margin-top: 16px;
}

.success-message {
    margin-bottom: 16px;
    padding: 10px 12px;
    border-radius: 8px;
    background: #dcfce7;
    color: #166534;
    font-size: 14px;
}

.dev-reset-url-box {
    margin-top: 16px;
    padding: 12px;
    border-radius: 8px;
    background: #fef3c7;
    color: #92400e;
    font-size: 13px;
    line-height: 1.6;
    word-break: break-all;
}

.dev-reset-url-box p {
    margin: 0 0 6px;
    font-weight: 700;
}

.dev-reset-url-box a {
    color: #92400e;
}

@media (max-width: 640px) {
    .confirmation-status-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.lp-header-inner {
    max-width: 1120px;
    margin: 0 auto;
    padding: 12px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    box-sizing: border-box;
}

.lp-logo {
    display: inline-flex;
    align-items: center;
    color: #1f2933;
    text-decoration: none;
}

.lp-logo-image-link {
    flex-shrink: 0;
}

.lp-logo-image {
    display: block;
    width: auto;
    height: 68px;
}

.lp-nav {
    display: flex;
    align-items: center;
    gap: 18px;
    font-size: 14px;
}

.lp-nav a {
    color: #374151;
    text-decoration: none;
    font-weight: 700;
}

.lp-nav-button {
    padding: 9px 14px;
    border-radius: 999px;
    background: #ffffff;
    border: 1px solid rgba(31, 41, 51, 0.12);
}

.lp-nav-label-sp {
    display: none;
}

.lp-hero {
    padding: 0px 24px 40px;
}

.lp-hero-inner {
    max-width: 1220px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(340px, 0.75fr);
    gap: 48px;
    align-items: start;
}

.lp-hero-copy {
    padding-top: 36px;
}

.lp-hero-card {
    display: flex;
    justify-content: center;
    padding-top: 28px;
}

.lp-eyebrow {
    margin: 0 0 14px;
    color: #b45309;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.06em;
    line-height: 1.6;
}

.lp-hero-title {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.30;
    letter-spacing: -0.03em;
    text-align: left;
}

.lp-hero-title-sub {
    display: inline-block;
    color: #1f2933;
    font-size: clamp(38px, 5.1vw, 64px);
    font-weight: 900;
}

.lp-hero-title-main {
    display: inline-block;
    color: #1f2933;
    font-size: clamp(48px, 6.1vw, 74px);
    font-weight: 900;
    letter-spacing: -0.04em;
}

.lp-nowrap {
    white-space: nowrap;
}

.lp-lead {
    margin: 24px 0 0;
    max-width: 760px;
    color: #4b5563;
    font-size: 18px;
    line-height: 1.9;
    font-weight: 500;
}

.lp-hero-actions {
    display: flex;
    gap: 12px;
    margin-top: 28px;
    flex-wrap: wrap;
}

.lp-primary-button,
.lp-secondary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 22px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 800;
    box-sizing: border-box;
}

.lp-primary-button {
    background: #1f2933;
    color: #ffffff;
    min-width: 300px;
    text-align: center;
    box-shadow: 0 10px 24px rgba(31, 41, 51, 0.22);
}

.lp-secondary-button {
    background: #ffffff;
    color: #1f2933;
    border: 1px solid rgba(31, 41, 51, 0.12);
}

.lp-note {
    margin: 16px 0 0;
    color: #6b7280;
    font-size: 14px;
}

.lp-phone-card {
    width: 100%;
    max-width: 420px;
    border-radius: 30px;
    background: #ffffff;
    padding: 28px;
    box-shadow: 0 24px 70px rgba(31, 41, 51, 0.20);
    border: 1px solid rgba(31, 41, 51, 0.08);
    box-sizing: border-box;
}

.lp-chat {
    max-width: 86%;
    padding: 14px 16px;
    border-radius: 18px;
    line-height: 1.7;
    font-size: 14px;
    box-sizing: border-box;
}

.lp-chat-admin {
    margin-left: auto;
    background: #dcfce7;
    color: #14532d;
    border-bottom-right-radius: 6px;
}

.lp-chat-bot {
    margin-top: 16px;
    background: #f3f4f6;
    color: #1f2933;
    border-bottom-left-radius: 6px;
}

.lp-chat-button {
    margin-top: 12px;
    padding: 10px 12px;
    border-radius: 10px;
    background: #1f2933;
    color: #ffffff;
    text-align: center;
    font-weight: 800;
}

.lp-chat-button-sub {
    margin-top: 8px;
    background: #ffffff;
    color: #1f2933;
    border: 1px solid rgba(31, 41, 51, 0.14);
}

.lp-result-box {
    margin-top: 22px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.lp-result-box div {
    padding: 14px 10px;
    border-radius: 16px;
    background: #f7f4ee;
    text-align: center;
}

.lp-result-box span {
    display: block;
    color: #6b7280;
    font-size: 12px;
    font-weight: 700;
}

.lp-result-box strong {
    display: block;
    margin-top: 4px;
    font-size: 22px;
}

.lp-value-band {
    padding: 70px 24px 64px;
    background: #f7f4ee;
}

.lp-value-band-inner {
    max-width: 1120px;
    margin: 0 auto;
    padding: 50px 44px;
    border-radius: 28px;
    background: #1f2933;
    color: #ffffff;
    box-shadow: 0 20px 48px rgba(31, 41, 51, 0.18);
    display: grid;
    grid-template-columns: 0.75fr 1.65fr;
    gap: 34px;
    align-items: center;
    box-sizing: border-box;
}

.lp-value-band-copy .lp-eyebrow {
    color: #fbbf24;
}

.lp-value-band-copy h2 {
    margin: 0;
    font-size: clamp(24px, 2.6vw, 32px);
    line-height: 1.42;
    letter-spacing: -0.03em;
}

.lp-value-points {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
}

.lp-value-point {
    padding: 8px 24px;
    border-radius: 0;
    background: transparent;
    border: 0;
    border-left: 1px solid rgba(255, 255, 255, 0.18);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    box-sizing: border-box;
}

.lp-value-point span {
    display: block;
    color: #fbbf24;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.08em;
}

.lp-value-point strong {
    display: block;
    margin-top: 10px;
    font-size: clamp(24px, 2.0vw, 30px);
    line-height: 1.55;
    letter-spacing: -0.02em;
}

.lp-section {
    padding: 72px 24px;
}

.lp-section-muted {
    background: #ffffff;
}

.lp-section-header {
    max-width: 760px;
    margin: 0 auto 34px;
    text-align: center;
}

.lp-section-header h2,
.lp-two-column h2,
.lp-pricing-card h2 {
    margin: 0;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.25;
    letter-spacing: -0.03em;
    text-align: inherit;
}

.lp-section-header p {
    margin: 16px 0 0;
    color: #6b7280;
    line-height: 1.8;
}

.lp-feature-grid {
    max-width: 1120px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.lp-feature-card,
.lp-flow-item {
    background: #ffffff;
    border-radius: 22px;
    padding: 26px;
    border: 1px solid rgba(31, 41, 51, 0.08);
    box-shadow: 0 10px 28px rgba(31, 41, 51, 0.06);
}

.lp-section-muted .lp-flow-item {
    background: #f7f4ee;
}

.lp-feature-card h3 {
    margin: 0;
    display: flex;
    align-items: flex-start;
    gap: 9px;
    font-size: 20px;
    line-height: 1.5;
}

.lp-feature-check {
    display: inline-block;
    margin-top: -1px;
    color: #06c755;
    font-size: 32px;
    font-weight: 900;
    line-height: 1.2;
    flex-shrink: 0;
}

.lp-flow-item h3 {
    margin: 0;
    font-size: 20px;
}

.lp-feature-card p,
.lp-flow-item p {
    margin: 12px 0 0;
    color: #6b7280;
    line-height: 1.8;
}

.lp-flow {
    max-width: 1120px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.lp-flow-item span {
    width: 38px;
    height: 38px;
    margin-bottom: 18px;
    border-radius: 999px;
    background: #1f2933;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
}

.lp-two-column {
    max-width: 1120px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 36px;
    align-items: start;
}

.lp-usecase-list {
    display: grid;
    gap: 14px;
}

.lp-usecase-list div {
    padding: 18px 20px;
    border-radius: 16px;
    background: #ffffff;
    border: 1px solid rgba(31, 41, 51, 0.08);
}

.lp-usecase-list strong {
    display: block;
    color: #1f2933;
    font-size: 24px;
    font-weight: 900;
    line-height: 1.5;
}

.lp-usecase-list span {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 12px;
    border-radius: 12px;
    background: #f7f4ee;
    color: #4b5563;
    font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", "Yu Gothic Medium", Meiryo, sans-serif;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.7;
}

.lp-pricing-section {
    padding-top: 48px;
}

.lp-pricing-card {
    max-width: 1120px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 34px;
    align-items: center;
    padding: 36px;
    border-radius: 28px;
    background: #1f2933;
    color: #ffffff;
    box-shadow: 0 24px 70px rgba(31, 41, 51, 0.22);
    box-sizing: border-box;
}

.lp-pricing-card p {
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.8;
}

.lp-pricing-card .lp-eyebrow {
    color: #fbbf24;
}

.lp-price-box {
    background: #ffffff;
    color: #1f2933;
    border-radius: 22px;
    padding: 26px;
    box-sizing: border-box;
}

.lp-price-box p {
    color: #4b5563;
}

.lp-price-label {
    margin: 0 0 2px;
    color: #6b7280;
    font-size: 13px;
    font-weight: 700;
}

.lp-price {
    margin: 0 0 22px;
    font-size: 30px;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.lp-price-note {
    margin: 0 0 18px;
    color: #1f2933;
    font-size: 18px;
    font-weight: 900;
    line-height: 1.5;
}

.lp-wide-button {
    width: 100%;
}

.lp-small-note {
    margin: 14px 0 0;
    font-size: 12px;
    line-height: 1.7;
}

.lp-existing-users {
    padding-top: 56px;
}

.lp-management-links {
    margin-top: 28px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.lp-management-card {
    display: block;
    padding: 20px;
    border-radius: 18px;
    background: #ffffff;
    border: 1px solid rgba(31, 41, 51, 0.10);
    color: #1f2933;
    text-decoration: none;
    box-shadow: 0 10px 24px rgba(31, 41, 51, 0.08);
}

.lp-management-card h3 {
    margin: 0 0 8px;
    font-size: 18px;
}

.lp-management-card p {
    margin: 0;
    color: #4b5563;
    line-height: 1.7;
}

.lp-footer {
    padding: 36px 24px;
    background: #f7f4ee;
    border-top: 1px solid rgba(31, 41, 51, 0.12);
}

.lp-footer-inner {
    max-width: 1120px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 32px;
}

.lp-footer strong {
    display: block;
    color: #1f2933;
    font-size: 16px;
}

.lp-footer p {
    margin: 6px 0 0;
    color: #6b7280;
    line-height: 1.7;
}

.lp-footer-operator {
    margin-top: 12px;
    color: #4b5563;
    font-weight: 700;
}

.lp-footer-links {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.lp-footer-links a {
    color: #4b5563;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
}

.lp-footer-links a:hover {
    text-decoration: underline;
}

.lp-line-screen-image {
    display: block;
    width: 100%;
    max-width: 560px;
    height: auto;
    margin: 0 auto;
    filter: drop-shadow(0 24px 50px rgba(31, 41, 51, 0.20));
}

.signup-container {
    align-items: flex-start;
}

.signup-card {
    max-width: 560px;
}

.form-section-title {
    margin: 28px 0 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid #eee;
    font-size: 18px;
    text-align: left;
}

.flash-success-message {
    margin: 0 0 20px;
    padding: 14px 16px;
    border: 1px solid #86efac;
    border-radius: 10px;
    background: #dcfce7;
    color: #166534;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.7;
}

/* Legal pages */

.legal-main {
    padding: 56px 24px 72px;
    background: #f7f4ee;
}

.legal-container {
    max-width: 880px;
    margin: 0 auto;
}

.legal-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 8px 24px rgba(31, 41, 51, 0.08);
    box-sizing: border-box;
}

.legal-card h1 {
    margin: 0 0 28px;
    font-size: 30px;
    line-height: 1.4;
    text-align: left;
}

.legal-card h2 {
    margin: 36px 0 14px;
    padding-top: 24px;
    border-top: 1px solid #e5e7eb;
    font-size: 20px;
    line-height: 1.5;
}

.legal-card h2:first-of-type {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
}

.legal-card p {
    margin: 0 0 14px;
    color: #374151;
    font-size: 15px;
    line-height: 1.9;
}

.legal-card ul,
.legal-card ol {
    margin: 0 0 18px;
    padding-left: 1.4em;
    color: #374151;
    font-size: 15px;
    line-height: 1.9;
}

.legal-card li + li {
    margin-top: 6px;
}

.legal-table {
    width: 100%;
    margin-top: 12px;
    border-collapse: collapse;
    font-size: 15px;
    line-height: 1.8;
}

.legal-table th,
.legal-table td {
    padding: 14px 16px;
    border: 1px solid #e5e7eb;
    vertical-align: top;
}

.legal-table th {
    width: 220px;
    background: #f9fafb;
    color: #374151;
    text-align: left;
    font-weight: 700;
}

.legal-table td {
    color: #374151;
}

.legal-note {
    margin-top: 24px;
    padding: 14px 16px;
    border-radius: 10px;
    background: #f9fafb;
    color: #4b5563;
    font-size: 14px;
    line-height: 1.8;
}

.legal-back-link {
    display: inline-block;
    margin-bottom: 20px;
    color: #374151;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.legal-back-link:hover {
    text-decoration: underline;
}

.legal-updated {
    margin-top: 32px;
    color: #6b7280;
    font-size: 13px;
    text-align: right;
}

.panel-actions {
    align-items: center;
}

.panel-actions form {
    margin: 0;
}

.contract-cancel-button {
    background: #b91c1c;
    color: #ffffff;
}

.manage-project-select {
    width: 100%;
    max-width: 100%;
}

.manage-selected-group-name {
    margin-top: 0.5rem;
    color: #555;
    font-size: 0.9rem;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.contact-page-container {
    max-width: 760px;
}

.contact-form textarea {
    width: 100%;
    margin-top: 6px;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-family: inherit;
    font-size: 16px;
    line-height: 1.7;
    box-sizing: border-box;
    resize: vertical;
}

.contact-form-note {
    margin: 4px 0 16px;
    color: #666;
    font-size: 13px;
    line-height: 1.7;
}

.contact-honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.contact-back-link {
    margin-top: 18px;
    text-align: center;
}

.contact-back-link a {
    color: #374151;
    font-weight: 700;
    text-decoration: none;
}

.contact-back-link a:hover {
    text-decoration: underline;
}

.flash-success-message {
    margin-bottom: 16px;
    padding: 12px 14px;
    border-radius: 8px;
    background: #dcfce7;
    color: #166534;
    font-size: 14px;
    font-weight: 700;
}

.lp-primary-button-disabled {
    cursor: default;
    opacity: 0.65;
    pointer-events: none;
}

@media (min-width: 900px) {
    .lp-hero-actions {
        padding-left: 40px;
    }
}

@media (max-width: 900px) {
    .lp-nav {
        display: flex;
        gap: 10px;
        font-size: 13px;
    }

    .lp-nav-page-link {
        display: none;
    }

    .lp-hero-inner,
    .lp-two-column,
    .lp-pricing-card {
        grid-template-columns: 1fr;
    }

    .lp-feature-grid,
    .lp-flow {
        grid-template-columns: 1fr 1fr;
    }

    .lp-hero {
        padding-top: 48px;
    }

    .lp-value-band-inner {
        grid-template-columns: 1fr;
    }

    .lp-value-points {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .legal-main {
        padding: 32px 16px 48px;
    }

    .legal-card {
        padding: 24px;
        border-radius: 14px;
    }

    .legal-card h1 {
        font-size: 24px;
    }

    .legal-card h2 {
        font-size: 18px;
    }

    .legal-table,
    .legal-table tbody,
    .legal-table tr,
    .legal-table th,
    .legal-table td {
        display: block;
        width: 100%;
        box-sizing: border-box;
    }

    .legal-table th {
        border-bottom: 0;
    }

    .legal-table td {
        border-top: 0;
    }

    .manage-project-select {
        width: 100%;
    }

    .lp-header-inner {
        padding: 10px 14px;
        gap: 10px;
    }

    .lp-hero,
    .lp-section {
        padding-left: 16px;
        padding-right: 16px;
    }

    .lp-hero-title-main {
        font-size: clamp(38px, 5.1vw, 64px);
        letter-spacing: -0.04em;
    }

    .lp-feature-grid,
    .lp-flow {
        grid-template-columns: 1fr;
    }

    .lp-hero-actions {
        flex-direction: column;
        justify-content: center;
        padding-left: 0;
    }

    .lp-primary-button,
    .lp-secondary-button {
        width: 100%;
        min-width: 0;
        padding-left: 16px;
        padding-right: 16px;
    }

    .lp-phone-card {
        padding: 20px;
        border-radius: 24px;
    }

    .lp-result-box {
        grid-template-columns: 1fr;
    }

    .lp-pricing-card {
        width: 100%;
        min-width: 0;
        padding: 22px 16px;
        gap: 22px;
        border-radius: 24px;
    }

    .lp-price-box {
        width: 100%;
        min-width: 0;
        padding: 22px 16px;
    }

    .lp-price {
        font-size: 28px;
        line-height: 1.25;
        word-break: keep-all;
    }

    .lp-footer-inner {
        flex-direction: column;
        gap: 22px;
    }

    .lp-footer-links {
        justify-content: flex-start;
        width: 100%;
        gap: 10px 14px;
    }

    .lp-logo-image {
        height: 56px;
    }

    .page-title-logo {
        height: 44px;
    }

    .login-logo-image {
        height: 60px;
    }

    .login-title {
        font-size: 20px;
    }

    .lp-management-links {
        grid-template-columns: 1fr;
    }

    .lp-nav-label-pc {
        display: none;
    }

    .lp-nav-label-sp {
        display: inline;
    }

    .lp-nav {
        gap: 6px;
        font-size: 12px;
        flex-shrink: 0;
    }

    .lp-nav-button {
        padding: 7px 9px;
    }
}