﻿/* リセットとベーススタイル */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Lato', 'Helvetica Neue', Arial, sans-serif;
    background-color: #f8f8f8;
    color: #1d1c1d;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ヘッダー */
.header {
    background-color: #4A154B;
    color: #ffffff;
    padding: 12px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-left {
    flex: 0 0 auto;
}

.service-name {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.service-name a {
    color: #ffffff;
}

.header-center {
    flex: 1;
    max-width: 600px;
    margin: 0 24px;
}

.search-bar {
    display: flex;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    overflow: hidden;
}

.search-bar input {
    flex: 1;
    padding: 8px 12px;
    border: none;
    background-color: transparent;
    color: #ffffff;
    font-size: 14px;
}

.search-bar input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.search-bar input:focus {
    outline: none;
    background-color: rgba(255, 255, 255, 0.3);
}

.search-bar button {
    padding: 8px 16px;
    border: none;
    background-color: #36C5F0;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}

.search-bar button:hover {
    background-color: #2eb5e0;
}

.header-right {
    flex: 0 0 auto;
}

.header-nav {
    display: flex;
    gap: 16px;
}

.nav-link {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.nav-link.active {
    background-color: rgba(255, 255, 255, 0.2);
    font-weight: 600;
}

/* メインコンテンツ */
.main-content {
    display: flex;
    max-width: 1400px;
    margin: 24px auto;
    gap: 24px;
    padding: 0 24px;
}

/* サイドバー */
.sidebar {
    flex: 0 0 250px;
    background-color: #ffffff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    height: fit-content;
    position: sticky;
    top: 80px;
}

.sidebar h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 16px;
    color: #1d1c1d;
}

.filter-section {
    margin-bottom: 20px;
}

.filter-section h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #616061;
}

.filter-section label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    cursor: pointer;
}

.filter-section input[type="checkbox"] {
    margin-right: 8px;
}

#apply-filters-btn {
    width: 100%;
    padding: 10px;
    background-color: #36C5F0;
    color: #ffffff;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}

#apply-filters-btn:hover {
    background-color: #2eb5e0;
}

/* 求人一覧セクション */
.job-list-section {
    flex: 1;
}

.job-list-section.full-width {
    flex: 1;
    max-width: 100%;
}

.job-list-section h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #1d1c1d;
}

.job-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}

/* 求人カード */
.job-card {
    background-color: #ffffff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.2s, transform 0.2s;
    cursor: pointer;
}

.job-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.job-card-header {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}

.job-card-image {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    margin-right: 12px;
    object-fit: cover;
}

.job-card-title {
    flex: 1;
}

.job-card-title h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 4px;
    color: #1d1c1d;
}

.job-card-company {
    font-size: 14px;
    color: #616061;
}

.job-card-info {
    margin-bottom: 12px;
}

.job-card-location,
.job-card-salary {
    font-size: 14px;
    color: #616061;
    margin-bottom: 4px;
}

.job-card-description {
    font-size: 14px;
    color: #1d1c1d;
    margin-bottom: 12px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.job-card-actions {
    display: flex;
    gap: 8px;
}

.btn-primary,
.btn-secondary {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-primary {
    background-color: #36C5F0;
    color: #ffffff;
}

.btn-primary:hover {
    background-color: #2eb5e0;
}

.btn-secondary {
    background-color: #e8e8e8;
    color: #1d1c1d;
}

.btn-secondary:hover {
    background-color: #d8d8d8;
}

.btn-secondary.saved {
    background-color: #2eb67d;
    color: #ffffff;
}

.btn-secondary.saved:hover {
    background-color: #26a069;
}

/* 求人詳細ページ */
.main-content.detail-page {
    display: block;
    max-width: 900px;
}

.detail-container {
    background-color: #ffffff;
    border-radius: 8px;
    padding: 32px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.detail-header {
    display: flex;
    align-items: flex-start;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid #e8e8e8;
}

.detail-company-image {
    width: 120px;
    height: 120px;
    border-radius: 8px;
    margin-right: 24px;
    object-fit: cover;
}

.detail-title-section h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #1d1c1d;
}

.detail-company {
    font-size: 18px;
    color: #616061;
    margin-bottom: 4px;
}

.detail-location {
    font-size: 16px;
    color: #616061;
}

.detail-actions {
    display: flex;
    gap: 12px;
    margin-bottom: 32px;
}

.detail-actions .btn-primary,
.detail-actions .btn-secondary {
    padding: 12px 24px;
    font-size: 16px;
}

.detail-section {
    margin-bottom: 24px;
}

.detail-section h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #1d1c1d;
}

.detail-section p {
    font-size: 16px;
    color: #1d1c1d;
    line-height: 1.6;
}

.detail-section ul {
    list-style-position: inside;
    font-size: 16px;
    color: #1d1c1d;
    line-height: 1.8;
}

/* アカウント設定ページ */
.account-section {
    flex: 1;
    max-width: 800px;
}

.account-section h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 24px;
    color: #1d1c1d;
}

.settings-card {
    background-color: #ffffff;
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.settings-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 16px;
    color: #1d1c1d;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 6px;
    color: #1d1c1d;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="password"] {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d1d1d1;
    border-radius: 4px;
    font-size: 14px;
    color: #1d1c1d;
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group input[type="tel"]:focus,
.form-group input[type="password"]:focus {
    outline: none;
    border-color: #36C5F0;
}

.form-group input[type="text"]:read-only {
    background-color: #f8f8f8;
    cursor: not-allowed;
}

.info-text {
    font-size: 12px;
    color: #616061;
    margin-top: 8px;
}

/* 空メッセージ */
.empty-message {
    text-align: center;
    font-size: 16px;
    color: #616061;
    padding: 40px 20px;
}

/* 応募状況バッジ */
.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    margin-top: 8px;
}

.status-badge.applied {
    background-color: #36C5F0;
    color: #ffffff;
}

.status-badge.in-progress {
    background-color: #ECB22E;
    color: #ffffff;
}

.status-badge.rejected {
    background-color: #E01E5A;
    color: #ffffff;
}

.status-badge.accepted {
    background-color: #2EB67D;
    color: #ffffff;
}

/* レスポンシブデザイン */
@media (max-width: 768px) {
    .main-content {
        flex-direction: column;
    }

    .sidebar {
        flex: 1;
        position: static;
    }

    .job-list {
        grid-template-columns: 1fr;
    }

    .header {
        flex-direction: column;
        gap: 12px;
    }

    .header-center {
        width: 100%;
        margin: 0;
    }

    .header-nav {
        flex-wrap: wrap;
        justify-content: center;
    }
}



/* 新しいUIデザイン用のスタイル */

/* ヘッダー（新デザイン） */
.header-new {
    background-color: #ffffff;
    border-bottom: 2px solid #9c27b0;
    padding: 20px 40px;
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.service-name-new {
    font-size: 32px;
    font-weight: 700;
    color: #9c27b0;
    margin: 0;
}

.header-nav-new {
    display: flex;
    gap: 40px;
    align-items: center;
}

.nav-link-new {
    font-size: 18px;
    font-weight: 600;
    color: #9c27b0;
    padding: 8px 16px;
    border-left: 2px solid #9c27b0;
    transition: all 0.3s ease;
    cursor: pointer;
}

.nav-link-new:hover {
    background-color: #f3e5f5;
}

/* 検索モーダル */
.search-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.search-modal-content {
    background-color: #ffffff;
    margin: 10% auto;
    padding: 40px;
    border-radius: 8px;
    width: 80%;
    max-width: 600px;
    position: relative;
}

.search-modal-close {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 32px;
    font-weight: bold;
    color: #999;
    cursor: pointer;
}

.search-modal-close:hover {
    color: #333;
}

.search-bar-modal {
    margin-top: 20px;
    display: flex;
    gap: 10px;
}

.search-bar-modal input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #9c27b0;
    border-radius: 4px;
    font-size: 16px;
}

.search-bar-modal button {
    padding: 12px 32px;
    background-color: #9c27b0;
    color: #ffffff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.search-bar-modal button:hover {
    background-color: #7b1fa2;
}

/* メインコンテンツ（新デザイン） */
.main-content-new {
    max-width: 1400px;
    margin: 40px auto;
    padding: 0 40px;
}

/* 求人一覧（新デザイン） */
.job-list-new {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    padding: 20px 0;
}

/* 求人カード（新デザイン） */
.job-card-new {
    background-color: #ffffff;
    border: 2px solid #8b5cf6;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.job-card-new:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-4px);
}

.job-card-image-new {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: linear-gradient(135deg, #9c27b0 0%, #e91e63 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 24px;
    font-weight: 600;
}

.job-card-image-new img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.job-card-content-new {
    padding: 20px;
    background-color: #f5f5f5;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.job-card-title-new {
    font-size: 16px;
    font-weight: 700;
    color: #333;
    margin-bottom: 8px;
    text-align: center;
}

.job-card-company-new {
    font-size: 14px;
    color: #666;
    margin-bottom: 12px;
    text-align: center;
}

.job-card-info-new {
    font-size: 13px;
    color: #333;
    line-height: 1.8;
    margin-bottom: 12px;
}

.job-card-description-new {
    font-size: 13px;
    color: #666;
    line-height: 1.6;
    margin-top: auto;
    text-align: center;
    padding-top: 12px;
    border-top: 1px solid #ddd;
}

/* レスポンシブデザイン */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 20px;
    }

    .header-nav-new {
        gap: 20px;
    }

    .job-list-new {
        grid-template-columns: 1fr;
    }
}

/* 新しいヘッダーデザイン */
.header-new {
    background-color: #4A154B;
    color: #ffffff;
    padding: 12px 24px;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.service-name-new {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: #ffffff;
}

.header-nav-new {
    display: flex;
    gap: 16px;
}

.nav-link-new {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.nav-link-new:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.nav-link-new.active {
    background-color: rgba(255, 255, 255, 0.2);
    font-weight: 600;
}

/* メインコンテンツ（新デザイン） */
.main-content-new {
    max-width: 1400px;
    margin: 24px auto;
    padding: 0 24px;
}

/* ウェルカムメッセージ */
.welcome-message {
    background-color: #ffffff;
    padding: 24px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    margin-bottom: 24px;
    text-align: center;
}

.welcome-message h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #1d1c1d;
}

.welcome-message p {
    font-size: 16px;
    color: #616061;
}



/* 求人一覧（新デザイン） */
.job-list-new {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 20px;
}

/* 求人カード（新デザイン） */
.job-card-new {
    background-color: #ffffff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.2s, transform 0.2s;
    cursor: pointer;
    display: flex;
    gap: 16px;
}

.job-card-new:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.job-card-image-new {
    flex: 0 0 80px;
}

.job-card-image-new img {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    object-fit: cover;
}

.job-card-content-new {
    flex: 1;
}

.job-card-title-new {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #1d1c1d;
    line-height: 1.4;
}

.job-card-company-new {
    font-size: 14px;
    color: #616061;
    margin-bottom: 12px;
}

.job-card-info-new {
    font-size: 12px;
    color: #616061;
    line-height: 1.4;
    margin-bottom: 12px;
}

.job-card-description-new {
    font-size: 14px;
    color: #1d1c1d;
    line-height: 1.5;
}



/* 検索モーダル */
.search-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.search-modal-content {
    background-color: #ffffff;
    margin: 10% auto;
    padding: 32px;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    position: relative;
}

.search-modal-close {
    position: absolute;
    right: 16px;
    top: 16px;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    color: #616061;
}

.search-modal-close:hover {
    color: #1d1c1d;
}

.search-modal h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 24px;
    color: #1d1c1d;
    text-align: center;
}

.search-bar-modal {
    display: flex;
    gap: 8px;
}

.search-bar-modal input {
    flex: 1;
    padding: 10px 12px;
    border: 2px solid #8b5cf6;
    border-radius: 4px;
    font-size: 14px;
}

.search-bar-modal input:focus {
    outline: none;
    border-color: #6b46c1;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.2);
}

.search-bar-modal button {
    padding: 10px 20px;
    background-color: #36C5F0;
    color: #ffffff;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}

.search-bar-modal button:hover {
    background-color: #2eb5e0;
}

/* レスポンシブデザイン */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 12px;
    }

    .header-nav-new {
        width: 100%;
        justify-content: center;
    }

    .job-list-new {
        grid-template-columns: 1fr;
    }

    .job-card-new {
        flex-direction: column;
        text-align: center;
    }

    .job-card-image-new {
        align-self: center;
    }
}

/* 新規ユーザ
ー登録フォーム用スタイル */
.required {
    color: #e74c3c;
    font-weight: bold;
}

.form-help {
    display: block;
    font-size: 12px;
    color: #616061;
    margin-top: 4px;
}

.password-match-indicator {
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    margin-top: 8px;
}

.password-match-indicator.empty {
    background-color: #f8f9fa;
    color: #616061;
    border: 1px solid #dee2e6;
}

.password-match-indicator.match {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.password-match-indicator.no-match {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.btn-secondary {
    background-color: #6c757d;
    color: #ffffff;
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
    margin-left: 8px;
}

.btn-secondary:hover {
    background-color: #5a6268;
}

.btn-primary:disabled {
    background-color: #6c757d;
    cursor: not-allowed;
    opacity: 0.6;
}

.btn-primary:disabled:hover {
    background-color: #6c757d;
}

/* 管理者セクション用スタイル */
#admin-section {
    border: 2px solid #ffc107;
    background-color: #fff3cd;
}

#admin-section h3 {
    color: #856404;
}

/* フォームバリデーション用スタイル */
.form-group input.invalid {
    border-color: #e74c3c;
    background-color: #fdf2f2;
}

.form-group input.valid {
    border-color: #27ae60;
    background-color: #f2fdf2;
}

.error-message {
    color: #e74c3c;
    font-size: 12px;
    margin-top: 4px;
    display: none;
}

.success-message {
    background-color: #d4edda;
    color: #155724;
    padding: 12px;
    border-radius: 4px;
    margin-bottom: 16px;
    border: 1px solid #c3e6cb;
}

/* CSV S
tatus Indicator */
.csv-status-indicator {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: #2196F3;
    color: white;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 8px;
}

.csv-status-indicator.monitoring {
    background: #4CAF50;
}

.csv-status-indicator.error {
    background: #f44336;
}

.csv-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }

    100% {
        opacity: 1;
    }
}

/* Registration Success Message */
.registration-success {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    z-index: 10001;
    max-width: 500px;
    text-align: center;
}

.registration-success h3 {
    color: #4CAF50;
    margin-bottom: 15px;
}

.registration-success .steps {
    text-align: left;
    margin: 20px 0;
    padding: 15px;
    background: #f5f5f5;
    border-radius: 5px;
}

.registration-success .steps ol {
    margin: 0;
    padding-left: 20px;
}

.registration-success .steps li {
    margin-bottom: 8px;
}

.registration-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
}

/* 認
証モーダル */
.auth-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.auth-modal-content {
    background-color: #ffffff;
    margin: 5% auto;
    padding: 32px;
    border-radius: 8px;
    width: 90%;
    max-width: 400px;
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.auth-modal-close {
    position: absolute;
    right: 16px;
    top: 16px;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    color: #616061;
    transition: color 0.2s;
}

.auth-modal-close:hover {
    color: #1d1c1d;
}

.auth-modal h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 24px;
    color: #1d1c1d;
    text-align: center;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    margin-bottom: 4px;
    font-size: 14px;
    font-weight: 600;
    color: #1d1c1d;
}

.form-group input {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid #8b5cf6;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.form-group input:focus {
    outline: none;
    border-color: #6b46c1;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.2);
}

.form-group input.invalid {
    border-color: #e74c3c;
    background-color: #fdf2f2;
}

.form-group input.valid {
    border-color: #27ae60;
    background-color: #f2fdf2;
}

.required {
    color: #e74c3c;
    font-weight: bold;
}

.form-help {
    display: block;
    font-size: 12px;
    color: #616061;
    margin-top: 4px;
}

.error-message {
    color: #e74c3c;
    font-size: 12px;
    margin-top: 4px;
    display: none;
}

.error-message.show {
    display: block;
}

.password-match-indicator {
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    margin-top: 8px;
}

.password-match-indicator.empty {
    background-color: #f8f9fa;
    color: #616061;
    border: 1px solid #dee2e6;
}

.password-match-indicator.match {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.password-match-indicator.no-match {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.auth-help {
    text-align: center;
    margin-top: 16px;
    font-size: 14px;
    color: #616061;
}

.auth-help a {
    color: #36C5F0;
    text-decoration: underline;
    cursor: pointer;
}

.auth-help a:hover {
    color: #2eb5e0;
}

.btn-primary:disabled {
    background-color: #6c757d;
    cursor: not-allowed;
    opacity: 0.6;
}

.btn-primary:disabled:hover {
    background-color: #6c757d;
}

/* ユーザー名表示 */
#user-name-display {
    color: #36C5F0 !important;
    font-weight: 600;
}

/ * 求人カードグリッドレイアウト */ .main-content-new {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px;
}

.job-list-new {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    align-items: start;
}

@media (max-width: 1023px) {
    .job-list-new {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .job-list-new {
        grid-template-columns: 1fr;
    }

    .main-content-new {
        padding: 16px;
    }
}

/* 求人カードスタイル */
.job-card {
    background: #fff;
    border-radius: 8px;
    padding: 16px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    min-height: 280px;
    cursor: pointer;
    transition: box-shadow 0.2s ease;
}

.job-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.job-card-header {
    display: flex;
    align-items: flex-start;
    margin-bottom: 12px;
}

.job-card-logo {
    width: 48px;
    height: 48px;
    margin-right: 12px;
    flex-shrink: 0;
}

.job-card-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 4px;
}

.job-card-main {
    flex: 1;
}

.job-card-title-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
}

.job-title {
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
    margin: 0;
    line-height: 1.3;
    flex: 1;
    margin-right: 8px;
}

.job-company {
    font-size: 14px;
    color: #6b7280;
    margin: 0 0 12px 0;
    font-weight: 500;
}

.job-info {
    margin-bottom: 12px;
}

.job-location,
.job-salary {
    font-size: 13px;
    color: #6b7280;
    margin: 4px 0;
}

.job-description {
    font-size: 14px;
    color: #374151;
    line-height: 1.4;
    margin: 0 0 16px 0;
    flex: 1;
}

/* 星アイコンボタン */
.btn-star {
    border: none;
    background: transparent;
    font-size: 20px;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s ease;
    color: #d1d5db;
}

.btn-star:hover {
    background-color: #f3f4f6;
    transform: scale(1.1);
}

.btn-star[aria-pressed="true"] {
    color: #ffd700;
}

.btn-star[aria-pressed="false"] {
    color: #d1d5db;
}

/* 応募ボタンは削除予定だが、一時的にスタイル維持 */
.job-actions {
    margin-top: auto;
    display: flex;
    gap: 8px;
}

.btn-apply {
    background-color: #3b82f6;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-apply:hover {
    background-color: #2563eb;
}

/* ウェルカムメッセージ */
.welcome-message {
    text-align: center;
    padding: 32px 24px;
    margin-bottom: 32px;
}

.welcome-message h2 {
    font-size: 28px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 8px;
}

.welcome-message p {
    font-size: 16px;
    color: #6b7280;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .job-card {
        min-height: 240px;
    }

    .job-title {
        font-size: 15px;
    }

    .welcome-message h2 {
        font-size: 24px;
    }

    .welcome-message p {
        font-size: 14px;
    }
}

/ * 保存済み求人ページのスタイル */ .saved-main {
    min-height: 100vh;
    background-color: #f8fafc;
    padding-top: 80px;
}

.saved-header {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    padding: 48px 0;
    text-align: center;
}

.saved-header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.saved-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 12px;
}

.saved-subtitle {
    font-size: 18px;
    opacity: 0.9;
}

.saved-content {
    padding: 48px 0;
}

.saved-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* 保存済み求人ページでも同じグリッドレイアウトを使用 */
.saved-container .job-list-new {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    align-items: start;
}

@media (max-width: 1023px) {
    .saved-container .job-list-new {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .saved-container .job-list-new {
        grid-template-columns: 1fr;
    }

    .saved-container {
        padding: 0 16px;
    }
}

/* 応募管理ページでも同じグリッドレイアウトを使用 */
.applied-container .job-list-new {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    align-items: start;
}

@media (max-width: 1023px) {
    .applied-container .job-list-new {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .applied-container .job-list-new {
        grid-template-columns: 1fr;
    }
}

/* ステータス
変更ボタンスタイル */
.btn-status-change {
    border: none;
    background: transparent;
    font-size: 16px;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s ease;
    color: #6b7280;
}

.btn-status-change:hover {
    background-color: #f3f4f6;
    transform: scale(1.1);
}

/* 求人詳
細ページのスタイル */
.detail-page {
    background-color: #f8fafc;
    min-height: 100vh;
    padding-top: 80px;
}

.detail-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 32px 24px;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin-top: 24px;
}

.detail-header {
    display: flex;
    align-items: flex-start;
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 2px solid #8b5cf6;
    gap: 0;
    /* gapを明示的に0に設定 */
}

.detail-image-container {
    width: 80px;
    height: 80px;
    margin-right: 24px;
    flex-shrink: 0;
    position: relative;
}

.detail-company-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 8px;
    display: block;
}

.detail-title-section {
    flex: 1;
    min-width: 0;
    /* flexboxでのテキストオーバーフロー対策 */
}

.detail-title-section h2 {
    font-size: 28px;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 8px 0;
    line-height: 1.3;
    word-wrap: break-word;
}

.detail-company {
    font-size: 18px;
    color: #6b7280;
    margin: 0 0 8px 0;
    font-weight: 500;
}

.detail-location {
    font-size: 16px;
    color: #6b7280;
    margin: 0;
}

/* 詳細ページのアクションボタン */
.detail-actions {
    display: flex;
    gap: 16px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.btn-apply-detail,
.btn-save-detail {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    min-width: 140px;
    justify-content: center;
}

.btn-apply-detail {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.btn-apply-detail:hover:not(:disabled) {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.4);
}

.btn-apply-detail:disabled {
    background: #9ca3af;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-apply-detail.applied {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.btn-save-detail {
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    color: #374151;
    border: 2px solid #d1d5db;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.btn-save-detail:hover:not(:disabled) {
    background: linear-gradient(135deg, #e5e7eb 0%, #d1d5db 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-save-detail.saved {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #92400e;
    border-color: #f59e0b;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.btn-save-detail.saved:hover:not(:disabled) {
    background: linear-gradient(135deg, #fde68a 0%, #fcd34d 100%);
    box-shadow: 0 6px 16px rgba(245, 158, 11, 0.4);
}

.btn-save-detail:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-icon {
    font-size: 18px;
    line-height: 1;
}

.btn-text {
    font-weight: 600;
}

/* 詳細セクション（統合版） */
.detail-section {
    margin-bottom: 28px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 8px;
    border: 1px solid rgba(139, 92, 246, 0.1);
    transition: all 0.3s ease;
}

.detail-section:hover {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(139, 92, 246, 0.2);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.1);
}

.detail-section p {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.detail-section ul {
    margin: 0;
    padding-left: 20px;
}

.detail-section li {
    font-size: 16px;
    line-height: 1.6;
    color: #374151;
    margin-bottom: 8px;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .detail-container {
        margin: 16px;
        padding: 24px 16px;
    }

    .detail-header {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    .detail-image-container {
        margin: 0 auto 16px auto;
    }

    .detail-title-section {
        text-align: center;
        width: 100%;
    }

    .detail-title-section h2 {
        font-size: 24px;
    }

    .detail-actions {
        flex-direction: column;
    }

    .btn-apply-detail,
    .btn-save-detail {
        width: 100%;
        min-width: auto;
    }
}

/* 会社ロゴプ
レースホルダー */
.company-placeholder {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f3f4f6;
    border-radius: 8px;
    font-size: 32px;
    color: #6b7280;
    margin-right: 24px;
    flex-shrink: 0;
}

/* 会社ロゴプ
レースホルダー（修正版） */
.company-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f3f4f6;
    border-radius: 8px;
    font-size: 32px;
    color: #6b7280;
    position: absolute;
    top: 0;
    left: 0;
}

/ * デザイン性向上 - 四隅装飾とグラデーション */
/* 全体のベースデザイン */
body {
    position: relative;
    overflow-x: hidden;
}

/* 四隅の装飾要素 */
body::before,
body::after {
    content: '';
    position: fixed;
    z-index: -1;
}

/* 左上の装飾 */
body::before {
    top: 0;
    left: 0;
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, #8b5cf6 0%, #a855f7 50%, #c084fc 100%);
    border-radius: 0 0 100% 0;
    opacity: 0.1;
}

/* 右下の装飾 */
body::after {
    bottom: 0;
    right: 0;
    width: 200px;
    height: 200px;
    background: linear-gradient(315deg, #8b5cf6 0%, #a855f7 50%, #c084fc 100%);
    border-radius: 100% 0 0 0;
    opacity: 0.1;
}

/* 右上と左下の装飾を追加 */
.corner-decoration {
    position: fixed;
    z-index: -1;
    pointer-events: none;
}

.corner-decoration.top-right {
    top: 0;
    right: 0;
    width: 150px;
    height: 150px;
    background: linear-gradient(225deg, #8b5cf6 0%, #a855f7 50%, #c084fc 100%);
    border-radius: 0 0 0 100%;
    opacity: 0.08;
}

.corner-decoration.bottom-left {
    bottom: 0;
    left: 0;
    width: 150px;
    height: 150px;
    background: linear-gradient(45deg, #8b5cf6 0%, #a855f7 50%, #c084fc 100%);
    border-radius: 0 100% 0 0;
    opacity: 0.08;
}

/* ヘッダーのデザイン向上 */
.header-new {
    background: linear-gradient(135deg, #6b46c1 0%, #8b5cf6 50%, #a855f7 100%);
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.3);
    border-bottom: 3px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

.header-new::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.5) 50%, transparent 100%);
}

.service-name-new a {
    background: linear-gradient(45deg, #ffffff 0%, #f3e8ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    font-weight: 800;
    letter-spacing: 1px;
}

/* ナビゲーションリンクの改善 */
.nav-link-new {
    position: relative;
    transition: all 0.3s ease;
    padding: 8px 16px;
    border-radius: 20px;
}

.nav-link-new::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nav-link-new:hover::before {
    opacity: 1;
}

.nav-link-new:hover {
    transform: translateY(-2px);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* メインコンテンツのデザイン向上 */
.main-content-new {
    position: relative;
    background: linear-gradient(135deg, #fafafa 0%, #f8fafc 100%);
    min-height: calc(100vh - 80px);
}

/* 求人詳細ページのデザイン向上 */
.detail-page {
    background: linear-gradient(135deg, #fafafa 0%, #f8fafc 50%, #f1f5f9 100%);
    position: relative;
}

.detail-container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(139, 92, 246, 0.4);
    box-shadow:
        0 10px 40px rgba(139, 92, 246, 0.2),
        0 4px 20px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.detail-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #8b5cf6 0%, #a855f7 50%, #c084fc 100%);
}

/* 求人カードのデザイン向上 */
.job-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(5px);
    border: 2px solid rgba(139, 92, 246, 0.3);
    box-shadow:
        0 4px 20px rgba(139, 92, 246, 0.15),
        0 2px 10px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.job-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #8b5cf6 0%, #a855f7 100%);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.job-card:hover::before {
    transform: scaleY(1);
}

.job-card:hover {
    transform: translateY(-4px);
    box-shadow:
        0 8px 30px rgba(139, 92, 246, 0.25),
        0 4px 20px rgba(0, 0, 0, 0.15);
    border-color: rgba(139, 92, 246, 0.6);
}

/* ボタンのデザイン向上 */
.btn-star {
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    border: 2px solid transparent;
    background-clip: padding-box;
    position: relative;
    overflow: hidden;
}

.btn-star::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn-star[aria-pressed="true"]::before {
    opacity: 1;
}

.btn-star[aria-pressed="true"] {
    color: #92400e;
    box-shadow: 0 4px 12px rgba(251, 191, 36, 0.3);
}

/* 詳細ページのボタン改善 */
.btn-apply-detail {
    background: linear-gradient(135deg, #8b5cf6 0%, #a855f7 100%);
    border: none;
    position: relative;
    overflow: hidden;
}

.btn-apply-detail::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn-apply-detail:hover::before {
    left: 100%;
}

/* セクションタイトルのデザイン（削除済み - 新しいスタイルを使用） */

/* ウェルカムメッセージの改善 */
.welcome-message,
.user-message {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(248, 250, 252, 0.9) 100%);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(139, 92, 246, 0.1);
    position: relative;
    overflow: hidden;
}

.welcome-message::before,
.user-message::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #8b5cf6 0%, #a855f7 50%, #c084fc 100%);
}

/* アニメーション効果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.job-card {
    animation: fadeInUp 0.6s ease-out;
}

.job-card:nth-child(2) {
    animation-delay: 0.1s;
}

.job-card:nth-child(3) {
    animation-delay: 0.2s;
}

.job-card:nth-child(4) {
    animation-delay: 0.3s;
}

/* スクロールバーのカスタマイズ */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #8b5cf6 0%, #a855f7 100%);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #7c3aed 0%, #9333ea 100%);
}

/ * 追加のデザイン効果 */
/* フローティングパーティクル効果 */
.floating-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: linear-gradient(45deg, #8b5cf6, #a855f7);
    border-radius: 50%;
    animation: float 15s infinite linear;
    opacity: 0.3;
}

@keyframes float {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }

    10% {
        opacity: 0.3;
    }

    90% {
        opacity: 0.3;
    }

    100% {
        transform: translateY(-100px) rotate(360deg);
        opacity: 0;
    }
}

.particle:nth-child(1) {
    left: 10%;
    animation-delay: 0s;
    animation-duration: 12s;
}

.particle:nth-child(2) {
    left: 20%;
    animation-delay: 2s;
    animation-duration: 14s;
}

.particle:nth-child(3) {
    left: 30%;
    animation-delay: 4s;
    animation-duration: 16s;
}

.particle:nth-child(4) {
    left: 40%;
    animation-delay: 6s;
    animation-duration: 13s;
}

.particle:nth-child(5) {
    left: 50%;
    animation-delay: 8s;
    animation-duration: 15s;
}

.particle:nth-child(6) {
    left: 60%;
    animation-delay: 10s;
    animation-duration: 11s;
}

.particle:nth-child(7) {
    left: 70%;
    animation-delay: 12s;
    animation-duration: 17s;
}

.particle:nth-child(8) {
    left: 80%;
    animation-delay: 14s;
    animation-duration: 12s;
}

.particle:nth-child(9) {
    left: 90%;
    animation-delay: 16s;
    animation-duration: 14s;
}

/* グラデーションオーバーレイ */
.gradient-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 80%, rgba(139, 92, 246, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(168, 85, 247, 0.03) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

/* ホバー時の光る効果 */
.job-card {
    position: relative;
}

.job-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1) 0%, rgba(168, 85, 247, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.job-card:hover::after {
    opacity: 1;
}

/* ボタンのリップル効果 */
.btn-star,
.btn-apply-detail,
.btn-save-detail {
    position: relative;
    overflow: hidden;
}

.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    transform: scale(0);
    animation: ripple-animation 0.6s linear;
    pointer-events: none;
}

@keyframes ripple-animation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* セクション間の区切り線 */
.section-divider {
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, #8b5cf6 20%, #a855f7 50%, #c084fc 80%, transparent 100%);
    margin: 32px 0;
    border-radius: 1px;
}

/* テキストのグラデーション効果 */
.gradient-text {
    background: linear-gradient(135deg, #8b5cf6 0%, #a855f7 50%, #c084fc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* カードのシマー効果（ローディング時） */
@keyframes shimmer {
    0% {
        background-position: -468px 0;
    }

    100% {
        background-position: 468px 0;
    }
}

.shimmer {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 400% 100%;
    animation: shimmer 1.5s infinite;
}

/* モーダルの改善 */
.auth-modal {
    backdrop-filter: blur(8px);
    background-color: rgba(107, 70, 193, 0.1);
}

.auth-modal-content {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(139, 92, 246, 0.2);
    box-shadow:
        0 20px 60px rgba(139, 92, 246, 0.2),
        0 8px 30px rgba(0, 0, 0, 0.1);
}

.auth-modal-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #8b5cf6 0%, #a855f7 50%, #c084fc 100%);
}

/* レスポンシブでの装飾調整 */
@media (max-width: 768px) {

    body::before,
    body::after,
    .corner-decoration {
        width: 100px;
        height: 100px;
    }

    .particle {
        display: none;
        /* モバイルではパーティクルを非表示 */
    }
}

/* 新しい求
人詳細項目のスタイル */

/* キャッチコピー */
.catchphrase-text {
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
    background: linear-gradient(135deg, #8b5cf6 0%, #a855f7 100%);
    padding: 16px 20px;
    border-radius: 8px;
    border-left: 6px solid #6b46c1;
    font-style: italic;
    text-align: center;
    margin: 0;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

/* 残業時間情報 */
.overtime-info {
    font-size: 14px;
    color: #6b7280;
    margin-top: 8px;
    padding: 8px 12px;
    background-color: #f9fafb;
    border-radius: 4px;
    border-left: 4px solid #8b5cf6;
}

/* 会社HPリンク */
.company-link {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
    padding: 8px 16px;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border-radius: 6px;
    border: 2px solid #3b82f6;
    display: inline-block;
    transition: all 0.3s ease;
}

.company-link:hover {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

.company-link::before {
    content: 'HP ';
    margin-right: 4px;
}

/* 詳細セクションの改善（下線スタイルは新しいものを使用） */
.detail-section {
    margin-bottom: 28px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 8px;
    border: 2px solid rgba(139, 92, 246, 0.3);
    transition: all 0.3s ease;
}

.detail-section:hover {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(139, 92, 246, 0.5);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.2);
}

.detail-section p {
    font-size: 15px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
}

.detail-section ul {
    margin: 0;
    padding-left: 20px;
}

.detail-section li {
    font-size: 15px;
    line-height: 1.6;
    color: #374151;
    margin-bottom: 6px;
    position: relative;
}

.detail-section li::marker {
    color: #8b5cf6;
}

/* アイコンを削除 - シンプルなデザインに変更 */

.detail-section:has(#detail-job-content) h3::after {
    content: '💼';
}

.detail-section:has(#detail-training-period) h3::after {
    content: '📚';
}

.detail-section:has(#detail-employment-type) h3::after {
    content: '📋';
}

.detail-section:has(#detail-recruitment-number) h3::after {
    content: '👥';
}

.detail-section:has(#detail-working-hours) h3::after {
    content: '⏰';
}

.detail-section:has(#detail-salary-details) h3::after {
    content: '💰';
}

.detail-section:has(#detail-requirements) h3::after {
    content: '✅';
}

.detail-section:has(#detail-benefits) h3::after {
    content: '🎁';
}

.detail-section:has(#detail-workplace-details) h3::after {
    content: '📍';
}

.detail-section:has(#detail-company-website) h3::after {
    content: '🌐';
}

.detail-section:has(#detail-posting-period) h3::after {
    content: '📅';
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .detail-section {
        padding: 16px;
        margin-bottom: 20px;
    }

    .catchphrase-text {
        font-size: 16px;
        padding: 12px 16px;
    }

    .company-link {
        padding: 6px 12px;
        font-size: 14px;
    }
}

/* セクション
アイコンの修正版 */
.detail-section h3 {
    display: flex;
    align-items: center;
    gap: 8px;
}

.detail-section h3::after {
    font-size: 16px;
    opacity: 0.7;
}

/* セクションタイトルの下線修正（削除済み - 新しいスタイルを使用） */

/* セクションアイコン */
.detail-section h3::after {
    font-size: 16px;
    opacity: 0.8;
}

/* 各セクションのアイコン */
/* アイコンを削除 - シンプルなデザインに変更 */

/* --- 見出しの下線スタイル修正・統一 --- */
.job-detail-title,
.section-title,
.detail-heading {
    display: inline-block;
    /* 文字の長さに合わせる */
    position: relative;
    font-weight: 600;
    color: #8b5cf6;
    /* 紫系の色 */
    padding-bottom: 8px;
    border: none;
    /* 既存の下線を削除 */
    margin-bottom: 16px;
}

.job-detail-title::after,
.section-title::after,
.detail-heading::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #8b5cf6 0%, #a855f7 100%);
    border-radius: 1px;
}

/* 求人詳細ページの見出し統一 */
.detail-container h2,
.detail-container h3 {
    display: inline-block;
    position: relative;
    font-weight: 600;
    color: #8b5cf6;
    padding-bottom: 8px;
    border: none;
    margin-bottom: 16px;
}

.detail-container h2::after,
.detail-container h3::before {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #8b5cf6 0%, #a855f7 100%);
    border-radius: 1px;
}

/* メインタイトルは少し太く */
.detail-container h2::after {
    height: 3px;
}

/* 既存のdetail-section h3スタイルを上書き */
.detail-section h3 {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    font-size: 18px;
    font-weight: 700;
    color: #8b5cf6 !important;
    margin: 0 0 12px 0;
    padding-bottom: 8px;
    border-bottom: none !important;
    position: relative;
}

.detail-section h3::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #8b5cf6 0%, #a855f7 100%);
    border-radius: 1px;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {

    .job-detail-title,
    .section-title,
    .detail-heading,
    .detail-container h2,
    .detail-container h3 {
        font-size: 16px;
        padding-bottom: 6px;
    }

    .job-detail-title::after,
    .section-title::after,
    .detail-heading::after,
    .detail-container h2::after,
    .detail-container h3::before,
    .detail-section h3::before {
        height: 2px;
    }
}
/* 決済完了ページのスタイル */
.payment-success-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 120px);
    padding: 20px;
}

.payment-success-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(139, 92, 246, 0.3);
    border-radius: 16px;
    padding: 40px;
    max-width: 600px;
    width: 100%;
    text-align: center;
    box-shadow: 0 10px 40px rgba(139, 92, 246, 0.2);
}

.success-icon {
    font-size: 64px;
    margin-bottom: 20px;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

.payment-success-card h2 {
    font-size: 28px;
    font-weight: 700;
    color: #8b5cf6;
    margin-bottom: 16px;
}

.success-message {
    font-size: 16px;
    color: #374151;
    margin-bottom: 32px;
    line-height: 1.6;
}

.registration-form-container {
    text-align: left;
    margin-top: 32px;
    padding: 24px;
    background: rgba(139, 92, 246, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(139, 92, 246, 0.2);
}

.registration-form-container h3 {
    font-size: 20px;
    font-weight: 700;
    color: #8b5cf6;
    margin-bottom: 20px;
    text-align: center;
}

.payment-info {
    background: linear-gradient(135deg, #8b5cf6 0%, #a855f7 100%);
    color: white;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
}

.payment-info p {
    margin: 0 0 12px 0;
    font-weight: 600;
}

.payment-info ul {
    margin: 0;
    padding-left: 20px;
}

.payment-info li {
    margin-bottom: 8px;
    font-size: 14px;
}

.premium-benefits {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    padding: 24px;
    border-radius: 12px;
    margin-top: 24px;
}

.premium-benefits h4 {
    margin: 0 0 16px 0;
    font-size: 18px;
    font-weight: 700;
}

.premium-benefits ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.premium-benefits li {
    margin-bottom: 8px;
    font-size: 14px;
    display: flex;
    align-items: center;
}

/* 決済ページへのリンクボタン */
.btn-payment {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    padding: 16px 32px;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.btn-payment:hover {
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(245, 158, 11, 0.4);
}

/* プレミアム会員向けのスタイル */
.premium-badge {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    display: inline-block;
    margin-left: 8px;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .payment-success-card {
        padding: 24px;
        margin: 16px;
    }
    
    .success-icon {
        font-size: 48px;
    }
    
    .payment-success-card h2 {
        font-size: 24px;
    }
    
    .registration-form-container {
        padding: 16px;
    }
}
/* ランディングページのスタイル */
.landing-main {
    background: linear-gradient(135deg, #fafafa 0%, #f8fafc 100%);
    min-height: calc(100vh - 80px);
}

/* ヒーローセクション */
.hero-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #8b5cf6 0%, #a855f7 50%, #c084fc 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content {
    text-align: left;
}

.hero-title {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.2;
    margin: 0 0 24px 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.highlight {
    background: linear-gradient(45deg, #fbbf24, #f59e0b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 20px;
    line-height: 1.6;
    margin: 0 0 40px 0;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.btn-hero {
    padding: 16px 32px;
    border: none;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    cursor: pointer;
    min-width: 180px;
    text-align: center;
}

.btn-primary-hero {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.btn-primary-hero:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.btn-secondary-hero {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
}

.btn-secondary-hero:hover {
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.5);
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-placeholder {
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-placeholder span {
    font-size: 80px;
    margin-bottom: 16px;
}

.hero-placeholder p {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}

/* 料金プランセクション */
.pricing-section {
    padding: 80px 0;
    background: white;
}

.pricing-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 24px;
    text-align: center;
}

.pricing-title {
    font-size: 36px;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 48px 0;
}

.pricing-card {
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid #8b5cf6;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(139, 92, 246, 0.1);
    position: relative;
    overflow: hidden;
}

.pricing-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #8b5cf6 0%, #a855f7 50%, #c084fc 100%);
}

.plan-header {
    margin-bottom: 32px;
}

.plan-name {
    font-size: 24px;
    font-weight: 700;
    color: #8b5cf6;
    margin: 0 0 16px 0;
}

.plan-price {
    display: flex;
    justify-content: center;
    align-items: baseline;
    gap: 8px;
}

.price-amount {
    font-size: 48px;
    font-weight: 800;
    color: #1f2937;
}

.price-period {
    font-size: 18px;
    color: #6b7280;
}

.plan-features ul {
    list-style: none;
    padding: 0;
    margin: 0 0 32px 0;
    text-align: left;
}

.plan-features li {
    padding: 12px 0;
    font-size: 16px;
    color: #374151;
    border-bottom: 1px solid #f3f4f6;
}

.plan-features li:last-child {
    border-bottom: none;
}

.btn-plan {
    background: linear-gradient(135deg, #8b5cf6 0%, #a855f7 100%);
    color: white;
    padding: 16px 40px;
    border: none;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}

.btn-plan:hover {
    background: linear-gradient(135deg, #7c3aed 0%, #9333ea 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.4);
}

/* サービス特徴セクション */
.features-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

.features-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.features-title {
    font-size: 36px;
    font-weight: 700;
    color: #1f2937;
    text-align: center;
    margin: 0 0 48px 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
}

.feature-card {
    background: white;
    padding: 32px 24px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(139, 92, 246, 0.1);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(139, 92, 246, 0.15);
    border-color: rgba(139, 92, 246, 0.3);
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.feature-card h4 {
    font-size: 20px;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 16px 0;
}

.feature-card p {
    font-size: 16px;
    color: #6b7280;
    line-height: 1.6;
    margin: 0;
}

/* CTAセクション */
.cta-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #1f2937 0%, #374151 100%);
    color: white;
}

.cta-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 24px;
    text-align: center;
}

.cta-title {
    font-size: 36px;
    font-weight: 700;
    margin: 0 0 16px 0;
}

.cta-description {
    font-size: 18px;
    line-height: 1.6;
    margin: 0 0 40px 0;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-cta {
    padding: 16px 32px;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    cursor: pointer;
    min-width: 200px;
    text-align: center;
}

.btn-outline {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

.btn-primary-cta {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    border: none;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
}

.btn-primary-cta:hover {
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.5);
}

/* フッター */
.footer {
    background: #1f2937;
    color: white;
    padding: 24px 0;
    text-align: center;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.footer p {
    margin: 0;
    opacity: 0.7;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .hero-title {
        font-size: 36px;
    }
    
    .hero-description {
        font-size: 18px;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .btn-hero {
        min-width: 160px;
        font-size: 16px;
        padding: 14px 28px;
    }
    
    .pricing-title,
    .features-title,
    .cta-title {
        font-size: 28px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-cta {
        width: 100%;
        max-width: 300px;
    }
}

/* 成功トースト */
.success-toast {
    animation: slideInRight 0.3s ease-out;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Registration Page Styles */
.registration-container {
    max-width: 600px;
    margin: 40px auto;
    padding: 0 20px;
}

.registration-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.1);
    padding: 40px;
    border: 2px solid #e5e7eb;
}

.registration-header {
    text-align: center;
    margin-bottom: 30px;
}

.registration-header h2 {
    color: #8b5cf6;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 12px;
}

.registration-subtitle {
    color: #6b7280;
    font-size: 16px;
    line-height: 1.5;
}

/* Registration Steps */
.registration-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 40px;
    padding: 20px;
    background: #f8fafc;
    border-radius: 8px;
    border: 2px solid #e5e7eb;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.step.active .step-number {
    background: #8b5cf6;
    color: white;
}

.step.active .step-text {
    color: #8b5cf6;
    font-weight: 600;
}

.step-number {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #e5e7eb;
    color: #6b7280;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    margin-bottom: 8px;
}

.step-text {
    font-size: 14px;
    color: #6b7280;
}

.step-arrow {
    margin: 0 20px;
    color: #d1d5db;
    font-weight: bold;
}

/* Premium Info */
.premium-info {
    background: linear-gradient(135deg, #8b5cf6 0%, #a855f7 100%);
    color: white;
    padding: 24px;
    border-radius: 12px;
    margin: 24px 0;
}

.premium-info h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
    text-align: center;
}

.premium-info ul {
    list-style: none;
    margin-bottom: 20px;
}

.premium-info li {
    padding: 6px 0;
    font-size: 14px;
}

.pricing-display {
    text-align: center;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.pricing-display .price {
    font-size: 24px;
    font-weight: 700;
}

/* Terms Agreement */
.terms-agreement {
    margin: 24px 0;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    font-size: 14px;
    line-height: 1.5;
}

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

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid #d1d5db;
    border-radius: 4px;
    margin-right: 12px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
    background: #8b5cf6;
    border-color: #8b5cf6;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    color: white;
    font-weight: bold;
    font-size: 14px;
}

.checkbox-label a {
    color: #8b5cf6;
    text-decoration: underline;
}

.checkbox-label a:hover {
    color: #7c3aed;
}

/* Toast Messages */
.success-toast,
.error-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 16px 24px;
    border-radius: 8px;
    font-weight: 600;
    z-index: 10000;
    animation: slideIn 0.3s ease-out;
}

.success-toast {
    background: #10b981;
    color: white;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.error-toast {
    background: #ef4444;
    color: white;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Responsive Design for Registration */
@media (max-width: 768px) {
    .registration-container {
        margin: 20px auto;
        padding: 0 16px;
    }
    
    .registration-card {
        padding: 24px;
    }
    
    .registration-steps {
        flex-direction: column;
        gap: 16px;
    }
    
    .step-arrow {
        transform: rotate(90deg);
        margin: 8px 0;
    }
}
/* Payment Waiting Page Styles */
.payment-waiting-container {
    max-width: 700px;
    margin: 40px auto;
    padding: 0 20px;
}

.payment-waiting-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(139, 92, 246, 0.15);
    padding: 48px;
    text-align: center;
    border: 2px solid #e5e7eb;
}

/* Loading Animation */
.loading-animation {
    margin-bottom: 32px;
}

.spinner {
    width: 64px;
    height: 64px;
    border: 4px solid #f3f4f6;
    border-top: 4px solid #8b5cf6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
    transition: all 0.3s ease;
}

.spinner.success {
    border-color: #10b981;
    animation: none;
}

.spinner.success::after {
    content: '✓';
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: #10b981;
    font-size: 32px;
    font-weight: bold;
}

.spinner.error {
    border-color: #ef4444;
    animation: none;
}

.spinner.error::after {
    content: '✗';
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: #ef4444;
    font-size: 32px;
    font-weight: bold;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Status Message */
.status-message {
    color: #6b7280;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 32px;
}

/* Payment Info */
.payment-info {
    background: #f8fafc;
    border-radius: 12px;
    padding: 24px;
    margin: 32px 0;
    border: 2px solid #e5e7eb;
}

.payment-info h4 {
    color: #374151;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: white;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.info-item .label {
    font-weight: 500;
    color: #6b7280;
}

.info-item .value {
    font-weight: 600;
    color: #374151;
}

/* Connection Status */
.connection-status {
    margin: 32px 0;
}

.indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.indicator.connecting {
    background: #fef3c7;
    color: #92400e;
    border: 2px solid #f59e0b;
}

.indicator.connected {
    background: #d1fae5;
    color: #065f46;
    border: 2px solid #10b981;
}

.indicator.success {
    background: #d1fae5;
    color: #065f46;
    border: 2px solid #10b981;
}

.indicator.error {
    background: #fee2e2;
    color: #991b1b;
    border: 2px solid #ef4444;
}

.indicator.timeout {
    background: #fef3c7;
    color: #92400e;
    border: 2px solid #f59e0b;
}

.indicator.checking {
    background: #e0e7ff;
    color: #3730a3;
    border: 2px solid #6366f1;
}

.indicator.waiting {
    background: #f3f4f6;
    color: #6b7280;
    border: 2px solid #d1d5db;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Manual Actions */
.manual-actions {
    background: #f8fafc;
    border-radius: 12px;
    padding: 24px;
    margin-top: 32px;
    border: 2px solid #e5e7eb;
}

.help-text {
    color: #6b7280;
    margin-bottom: 20px;
    font-size: 14px;
}

.manual-actions .btn-secondary {
    margin-right: 12px;
    margin-bottom: 12px;
}

/* Progress Steps for Waiting Page */
.payment-waiting-card .progress-steps {
    margin: 32px 0;
}

.payment-waiting-card .step.completed .step-number {
    background: #10b981;
    color: white;
}

.payment-waiting-card .step.completed .step-text {
    color: #10b981;
    font-weight: 600;
}

/* Responsive Design for Payment Waiting */
@media (max-width: 768px) {
    .payment-waiting-container {
        margin: 20px auto;
        padding: 0 16px;
    }
    
    .payment-waiting-card {
        padding: 32px 24px;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .manual-actions .btn-secondary,
    .manual-actions .btn-primary {
        width: 100%;
        margin-right: 0;
        margin-bottom: 12px;
    }
}
/* Premium Welcome Message Styles */
.premium-welcome {
    margin: 20px auto 40px;
    max-width: 800px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
}

.premium-welcome.show {
    opacity: 1;
    transform: translateY(0);
}

.premium-welcome.fade-out {
    opacity: 0;
    transform: translateY(-20px);
}

.premium-welcome-card {
    background: linear-gradient(135deg, #8b5cf6 0%, #a855f7 100%);
    color: white;
    padding: 40px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 8px 32px rgba(139, 92, 246, 0.3);
    position: relative;
    overflow: hidden;
}

.premium-welcome-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { transform: rotate(0deg); }
    50% { transform: rotate(180deg); }
}

.premium-icon {
    font-size: 48px;
    margin-bottom: 20px;
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

.premium-welcome-card h3 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
}

.premium-message {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 32px;
    opacity: 0.95;
    position: relative;
    z-index: 1;
}

.premium-benefits {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 32px;
    position: relative;
    z-index: 1;
}

.premium-benefits h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
}

.benefits-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
}

.benefit-icon {
    font-size: 16px;
}

.premium-welcome .btn-primary {
    background: white;
    color: #8b5cf6;
    border: none;
    padding: 16px 32px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.premium-welcome .btn-primary:hover {
    background: #f8fafc;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Premium Badge */
.premium-badge {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Responsive Design for Premium Welcome */
@media (max-width: 768px) {
    .premium-welcome-card {
        padding: 24px;
        margin: 16px;
    }
    
    .premium-welcome-card h3 {
        font-size: 24px;
    }
    
    .premium-message {
        font-size: 14px;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .benefit-item {
        font-size: 13px;
    }
}