/*
カメレオンキャリア カスタムスタイル
*/

:root {
    --primary: #667eea;
    --secondary: #f093fb;
    --dark: #2d3748;
    --light: #f7fafc;
    --white: #ffffff;
    --text: #4a5568;
    --border: #e2e8f0;
    --success: #48bb78;
    --warning: #ed8936;
    --error: #f56565;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    color: var(--text);
    line-height: 1.6;
    background: var(--light);
}

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

/* ========================================
   ヘッダー - ロゴ対応版
======================================== */
.site-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    padding: 1rem 0;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--white);
    font-size: 1.5rem;
    font-weight: bold;
    transition: transform 0.3s ease;
}

.logo a:hover {
    transform: scale(1.05);
}

.logo-image {
    height: 50px;
    width: auto;
    border-radius: 8px;
    background: var(--white);
    padding: 4px;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--white);
}

.main-nav {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 8px;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.nav-cta {
    background: var(--white);
    color: var(--primary);
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    font-weight: bold;
}

.nav-cta:hover {
    background: var(--light);
    transform: translateY(-2px);
}

/* ハンバーガーメニュー */
.hamburger-menu {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.hamburger-menu span {
    width: 25px;
    height: 3px;
    background: var(--white);
    transition: all 0.3s ease;
    border-radius: 2px;
}

.hamburger-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

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

.hamburger-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* ========================================
   ヒーローセクション
======================================== */
.hero-section {
    position: relative;
    height: 600px;
    overflow: hidden;
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.9) 0%, rgba(240, 147, 251, 0.85) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content {
    text-align: center;
    color: var(--white);
    z-index: 10;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1s ease;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2.5rem;
    line-height: 1.6;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    animation: fadeInUp 1s ease 0.2s both;
}

.hero-cta {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    animation: fadeInUp 1s ease 0.4s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   特徴セクション
======================================== */
.features-section {
    padding: 5rem 0;
    background: var(--white);
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.feature-card {
    text-align: center;
    padding: 2rem;
    border-radius: 16px;
    background: var(--light);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.feature-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--dark);
}

.feature-description {
    color: var(--text);
    line-height: 1.6;
}

/* ========================================
   新着求人セクション
======================================== */
.latest-jobs-section {
    padding: 5rem 0;
    background: var(--light);
}

.jobs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.job-card {
    background: var(--white);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.job-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.job-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.job-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.job-title a {
    color: var(--dark);
    text-decoration: none;
    transition: color 0.3s ease;
}

.job-title a:hover {
    color: var(--primary);
}

.job-type {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: var(--white);
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.875rem;
    white-space: nowrap;
}

.job-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
    color: var(--text);
    font-size: 0.95rem;
}

.job-salary {
    color: var(--primary);
    font-weight: bold;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.job-excerpt {
    color: var(--text);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.section-cta {
    text-align: center;
}

.no-jobs {
    text-align: center;
    color: var(--text);
    font-size: 1.1rem;
    padding: 3rem;
    grid-column: 1 / -1;
}

/* ========================================
   CTA セクション
======================================== */
.cta-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    text-align: center;
}

.cta-content {
    color: var(--white);
}

.cta-title {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.cta-description {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
}

/* ========================================
   ボタン
======================================== */
.btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: var(--white);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: var(--white);
    color: var(--primary);
    border: 2px solid var(--white);
}

.btn-secondary:hover {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
    transform: translateY(-3px);
}

.btn-white {
    background: var(--white);
    color: var(--primary);
}

.btn-white:hover {
    background: var(--light);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--white);
}

.btn-large {
    padding: 1rem 3rem;
    font-size: 1.1rem;
}

/* ========================================
   フッター
======================================== */

/* ========================================
   フッター（完全版・色修正）
======================================== */
.site-footer {
    background: #2d3748;
    color: #ffffff;
    padding: 4rem 0 1.5rem;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand {
    padding-right: 2rem;
}

.footer-brand h3 {
    color: #ffffff;
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
}

.footer-description {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.footer-contact {
    margin-top: 1rem;
}

.footer-contact p {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
}

.footer-contact a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-contact a:hover {
    color: #f093fb;
    text-decoration: underline;
}

.footer-section h3 {
    color: #ffffff;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
}

.footer-section ul li strong {
    color: #ffffff;
    font-size: 1rem;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-section a:hover {
    color: #ffffff;
    transform: translateX(3px);
}

.footer-business-hours {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    margin-top: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.footer-small {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
}
/* ========================================
   レスポンシブデザイン - タブレット
======================================== */
@media (max-width: 768px) {
    .hamburger-menu {
        display: flex;
    }

    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 1.5rem;
        transition: right 0.3s ease;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.2);
        z-index: 999;
    }

    .main-nav.active {
        right: 0;
    }

    .nav-link {
        width: 80%;
        text-align: center;
        padding: 1rem;
    }

    .logo-text {
        font-size: 1.2rem;
    }

    .logo-image {
        height: 40px;
    }

    .hero-section {
        height: 500px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

    .section-title {
        font-size: 2rem;
    }

    .cta-title {
        font-size: 2rem;
    }

    .jobs-grid {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   レスポンシブデザイン - スマホ
======================================== */
@media (max-width: 480px) {
    .hero-section {
        height: 400px;
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .btn-large {
        padding: 0.875rem 2rem;
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .cta-title {
        font-size: 1.75rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .feature-icon {
        font-size: 3rem;
    }
}

/* ========================================
   既存スタイル（その他のページ用）
======================================== */

/* 求人一覧・検索ページ */
.page-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: var(--white);
    padding: 3rem 0;
    text-align: center;
    margin-bottom: 3rem;
}

.page-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.search-section {
    background: var(--white);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: var(--shadow);
    margin-bottom: 3rem;
}

.search-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--dark);
}

.form-group input,
.form-group select {
    padding: 0.75rem;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
}

.search-actions {
    display: flex;
    gap: 1rem;
    align-items: flex-end;
}

.btn-search {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: var(--white);
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-search:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-reset {
    background: var(--light);
    color: var(--text);
    padding: 0.75rem 2rem;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-reset:hover {
    background: var(--white);
    border-color: var(--primary);
}

.results-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding: 1rem 0;
}

.results-count {
    font-size: 1.1rem;
    color: var(--dark);
}

.sort-section {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* 求人詳細ページ */
.job-detail {
    background: var(--white);
    border-radius: 16px;
    padding: 3rem;
    box-shadow: var(--shadow);
}

.job-detail-header {
    border-bottom: 2px solid var(--border);
    padding-bottom: 2rem;
    margin-bottom: 2rem;
}

.job-detail-title {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.job-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    font-size: 1rem;
}

.job-detail-content {
    margin-bottom: 3rem;
}

.job-detail-section {
    margin-bottom: 2rem;
}

.job-detail-section h3 {
    color: var(--dark);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.application-form {
    background: var(--light);
    padding: 2rem;
    border-radius: 16px;
}

.application-form h3 {
    margin-bottom: 1.5rem;
    color: var(--dark);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

textarea {
    padding: 0.75rem;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    resize: vertical;
    min-height: 120px;
}

textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.btn-submit {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: var(--white);
    padding: 1rem 3rem;
    border: none;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.btn-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.4);
}

/* ダッシュボード */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.dashboard-card {
    background: var(--white);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--shadow);
}

.dashboard-card h3 {
    color: var(--dark);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.application-item {
    border-bottom: 1px solid var(--border);
    padding: 1rem 0;
}

.application-item:last-child {
    border-bottom: none;
}

.application-title {
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.application-status {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.875rem;
    font-weight: 600;
}

.status-pending {
    background: var(--warning);
    color: var(--white);
}

.status-reviewed {
    background: #4299e1;
    color: var(--white);
}

.status-accepted {
    background: var(--success);
    color: var(--white);
}

.status-rejected {
    background: var(--error);
    color: var(--white);
}

.quick-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.action-btn {
    display: block;
    padding: 1rem;
    background: var(--light);
    border: 2px solid var(--border);
    border-radius: 12px;
    text-decoration: none;
    color: var(--dark);
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
}

.action-btn:hover {
    background: var(--white);
    border-color: var(--primary);
    transform: translateY(-2px);
}

/* 会員登録・プロフィール編集 */
.form-container {
    max-width: 600px;
    margin: 0 auto;
    background: var(--white);
    padding: 3rem;
    border-radius: 16px;
    box-shadow: var(--shadow);
}

.form-container h2 {
    text-align: center;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.success-message,
.error-message {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.success-message {
    background: #c6f6d5;
    color: #22543d;
    border-left: 4px solid var(--success);
}

.error-message {
    background: #fed7d7;
    color: #742a2a;
    border-left: 4px solid var(--error);
}

/* お気に入りボタン */
.favorite-btn {
    background: transparent;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    transition: transform 0.3s ease;
    padding: 0.5rem;
}

.favorite-btn:hover {
    transform: scale(1.2);
}

.favorite-btn.is-favorite {
    animation: heartBeat 0.5s ease;
}

@keyframes heartBeat {
    0%, 100% { transform: scale(1); }
    25% { transform: scale(1.3); }
    50% { transform: scale(1.1); }
    75% { transform: scale(1.2); }
}

/* お気に入り一覧 */
.favorites-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.favorite-item {
    position: relative;
}

.remove-favorite {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--white);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    z-index: 10;
}

.remove-favorite:hover {
    background: var(--error);
    transform: scale(1.1);
}

/* メッセージ・通知 */
.alert {
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.alert-success {
    background: #c6f6d5;
    color: #22543d;
    border-left: 4px solid var(--success);
}

.alert-error {
    background: #fed7d7;
    color: #742a2a;
    border-left: 4px solid var(--error);
}

.alert-warning {
    background: #feebc8;
    color: #7c2d12;
    border-left: 4px solid var(--warning);
}

.alert-info {
    background: #bee3f8;
    color: #2c5282;
    border-left: 4px solid #4299e1;
}

/* ========================================
   フッターレスポンシブ
======================================== */
@media (max-width: 768px) {
    .site-footer {
        padding: 3rem 0 1.5rem;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }

    .footer-brand {
        grid-column: 1 / -1;
        padding-right: 0;
        text-align: center;
        padding-bottom: 2rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .footer-contact {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .site-footer {
        padding: 2rem 0 1rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-section h3 {
        font-size: 1rem;
        margin-bottom: 1rem;
    }

    .footer-section ul li {
        margin-bottom: 0.5rem;
        font-size: 0.9rem;
    }

    .footer-bottom p {
        font-size: 0.85rem;
    }

    .footer-small {
        font-size: 0.8rem;
    }
}
/* ========================================
   CSV一括アップロードページ用スタイル
   既存のcustom.cssの最後に追記してください
======================================== */

.bulk-upload-wrapper {
    max-width: 1000px;
    margin: 0 auto;
    padding: 3rem 0;
}

.bulk-upload-wrapper > div {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

.bulk-upload-wrapper h2 {
    color: var(--dark);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--primary);
}

/* 使い方セクション */
.usage-steps {
    margin-left: 2rem;
    line-height: 2;
}

.usage-steps li {
    margin-bottom: 0.75rem;
    color: var(--text);
}

.usage-steps strong {
    color: var(--primary);
    font-weight: 600;
}

/* テンプレートセクション */
.template-section p {
    color: var(--text);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

/* フォーマット説明 */
.format-table-wrapper {
    overflow-x: auto;
    margin-bottom: 2rem;
}

.format-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.format-table thead {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: var(--white);
}

.format-table th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
}

.format-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--border);
    color: var(--text);
}

.format-table tbody tr:hover {
    background: var(--light);
}

.format-notes {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 8px;
    padding: 1.5rem;
    margin-top: 2rem;
}

.format-notes h3 {
    color: #856404;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.format-notes ul {
    margin-left: 1.5rem;
    line-height: 1.8;
}

.format-notes li {
    color: #856404;
    margin-bottom: 0.5rem;
}

/* アップロードフォーム */
.upload-form {
    margin-top: 2rem;
}

.file-label {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: var(--white);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.file-label:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.file-label.file-selected {
    background: linear-gradient(135deg, var(--success) 0%, #38a169 100%);
}

.file-icon {
    font-size: 1.5rem;
}

.file-input {
    display: none;
}

.file-name {
    margin-top: 1rem;
    color: var(--text);
    font-size: 0.95rem;
    font-style: italic;
}

.form-actions {
    margin-top: 2rem;
}

/* サンプルデータ */
.sample-code {
    background: var(--dark);
    color: #00ff00;
    padding: 1.5rem;
    border-radius: 8px;
    overflow-x: auto;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.6;
}

/* アラート */
.alert {
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    font-weight: 600;
    animation: slideDown 0.5s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 2px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 2px solid #f5c6cb;
}

/* レスポンシブ */
@media (max-width: 768px) {
    .bulk-upload-wrapper > div {
        padding: 1.5rem;
    }

    .bulk-upload-wrapper h2 {
        font-size: 1.3rem;
    }

    .format-table {
        font-size: 0.85rem;
    }

    .format-table th,
    .format-table td {
        padding: 0.75rem 0.5rem;
    }

    .usage-steps {
        margin-left: 1.5rem;
    }
}

@media (max-width: 480px) {
    .bulk-upload-wrapper > div {
        padding: 1rem;
    }

    .format-table {
        display: block;
        overflow-x: auto;
    }

    .file-label {
        padding: 0.875rem 1.5rem;
        font-size: 0.95rem;
    }

    .sample-code {
        font-size: 0.75rem;
        padding: 1rem;
    }
}

/* ========================================
   CSV一括アップロードページ用スタイル
   既存のcustom.cssの最後に追記してください
======================================== */

.bulk-upload-wrapper {
    max-width: 1000px;
    margin: 0 auto;
    padding: 3rem 0;
}

.bulk-upload-wrapper > div {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

.bulk-upload-wrapper h2 {
    color: var(--dark);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--primary);
}

/* 使い方セクション */
.usage-steps {
    margin-left: 2rem;
    line-height: 2;
}

.usage-steps li {
    margin-bottom: 0.75rem;
    color: var(--text);
}

.usage-steps strong {
    color: var(--primary);
    font-weight: 600;
}

/* テンプレートセクション */
.template-section p {
    color: var(--text);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

/* フォーマット説明 */
.format-table-wrapper {
    overflow-x: auto;
    margin-bottom: 2rem;
}

.format-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.format-table thead {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: var(--white);
}

.format-table th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
}

.format-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--border);
    color: var(--text);
}

.format-table tbody tr:hover {
    background: var(--light);
}

.format-notes {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 8px;
    padding: 1.5rem;
    margin-top: 2rem;
}

.format-notes h3 {
    color: #856404;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.format-notes ul {
    margin-left: 1.5rem;
    line-height: 1.8;
}

.format-notes li {
    color: #856404;
    margin-bottom: 0.5rem;
}

/* アップロードフォーム */
.upload-form {
    margin-top: 2rem;
}

.file-label {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: var(--white);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.file-label:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.file-label.file-selected {
    background: linear-gradient(135deg, var(--success) 0%, #38a169 100%);
}

.file-icon {
    font-size: 1.5rem;
}

.file-input {
    display: none;
}

.file-name {
    margin-top: 1rem;
    color: var(--text);
    font-size: 0.95rem;
    font-style: italic;
}

.form-actions {
    margin-top: 2rem;
}

/* サンプルデータ */
.sample-code {
    background: var(--dark);
    color: #00ff00;
    padding: 1.5rem;
    border-radius: 8px;
    overflow-x: auto;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.6;
}

/* アラート */
.alert {
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    font-weight: 600;
    animation: slideDown 0.5s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 2px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 2px solid #f5c6cb;
}

/* レスポンシブ */
@media (max-width: 768px) {
    .bulk-upload-wrapper > div {
        padding: 1.5rem;
    }

    .bulk-upload-wrapper h2 {
        font-size: 1.3rem;
    }

    .format-table {
        font-size: 0.85rem;
    }

    .format-table th,
    .format-table td {
        padding: 0.75rem 0.5rem;
    }

    .usage-steps {
        margin-left: 1.5rem;
    }
}

@media (max-width: 480px) {
    .bulk-upload-wrapper > div {
        padding: 1rem;
    }

    .format-table {
        display: block;
        overflow-x: auto;
    }

    .file-label {
        padding: 0.875rem 1.5rem;
        font-size: 0.95rem;
    }

    .sample-code {
        font-size: 0.75rem;
        padding: 1rem;
    }
}
